How to add a user defined function to a Category using Excel VBA Macro
How to Categorize the User Defined Function using VBA Macro
The following code adds the Get_Net_Working_Days UDF to the Date & Time Category.
Sub Add_UDF_To_Category()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Application.MacroOptions Macro:="PERSONAL.XLSB!Get_Net_Working_Days", Category:=2, Description:="Returns Net Working Days for 2009" '
End Sub
The above snippet uses the MacroOptions function that sets/resets properties that are available in Macro Options dialog
Insert Function Dialog – Before Macro
Insert Function Dialog – After Macro
- Login or register to post comments
- Feed: vbadb feed
- Original article
