Error with MarcoOptions method, add a new category

D

Dave N

Hi,

I am trying to add my UDF's to their own categoryin the Insert Function
Dropdown list. To do this I am trying to use the MacroOptions method:

Application.MacroOptions "myFunction", Description:="This is a test",
Category:="TestGroup"

However I am getting the following error:

"Method 'MacroOptions' of object' _Application' failed"

The MacroOptions method works if I just change the descripion so it is the
Category part that is causing the problem. I understand that is the category
does not exist then a new one will be automatically created so to see if this
is where the problem lies I have tried to add the function to an existing
category and I still get the error.

Any ideas would be much appreciated!

Thanks
DN
 
J

Jim Cone

See this post from last year for some ideas...
http://tinyurl.com/ywx2tl
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




in message
Hi,
I am trying to add my UDF's to their own categoryin the Insert Function
Dropdown list. To do this I am trying to use the MacroOptions method:

Application.MacroOptions "myFunction", Description:="This is a test",
Category:="TestGroup"

However I am getting the following error:
"Method 'MacroOptions' of object' _Application' failed"
The MacroOptions method works if I just change the descripion so it is the
Category part that is causing the problem. I understand that is the category
does not exist then a new one will be automatically created so to see if this
is where the problem lies I have tried to add the function to an existing
category and I still get the error.
Any ideas would be much appreciated!
Thanks
DN
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top