Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add custom category description to UDF

Status
Not open for further replies.

axel67

Technical User
Jan 2, 2007
21
Hi,
I came accross a procedure how to add to a UDF a function description as well as to set a new category (see below). But when I try that for my XLA project it does not work and I get the error 1004: Method 'MacroOptions' of object '_Application' failed.

Sub AddCategoryDescription()
Dim strFunction As String
Dim strDescript As String
Dim vCat
strFunction = "MyAge"
strDescript = "Function to calculate my age"
vCat = "My own functions"
Application.MacroOptions Macro:=strFunction, Description:=strDescript, Category:=vCat
End Sub

Has anyone an idea?

Thanks,
Axel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top