11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VBA Custom Function<br />

Examples<br />

In This Chapter<br />

● Simple custom function examples<br />

● A custom function to determine a cell’s data type<br />

● A custom function to make a single worksheet function act like multiple functions<br />

● A custom function for generating random numbers and selecting cells at random<br />

● Custom functions for calculating sales commissions<br />

● Custom functions for manipulating text<br />

● Custom functions for counting and summing cells<br />

● Custom functions that deal with dates<br />

● A custom function example for returning the last nonempty cell in a column or row<br />

● Custom functions that work with multiple worksheets<br />

● Advanced custom function techniques<br />

669<br />

25<br />

This chapter is jam-packed with a wide variety of useful (or potentially useful) VBA custom worksheet<br />

functions. You can use many of the functions as they are written. You may need to modify<br />

other functions to meet your particular needs. For maximum speed and efficiency, these<br />

Function procedures declare all variables that are used.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!