Using the Insert Function Dialog

The Excel Insert Function dialog box is a handy tool that lets you choose a worksheet function from a list and prompts you for the function's arguments. And, as I note earlier in this chapter, your custom worksheet functions also appear in the Insert Function dialog box. Custom functions appear in the User Defined category.

Function procedures defined with the Private keyword do not appear in the Insert Function dialog box. Therefore, if you write a Function procedure that's designed to be used only by other VBA procedures (but not in formulas), you should declare the function as Private.

0 0

Post a comment