ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Error with MarcoOptions method, add a new category (https://www.excelbanter.com/excel-programming/402001-error-marcooptions-method-add-new-category.html)

dave n

Error with MarcoOptions method, add a new category
 
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

Jim Cone

Error with MarcoOptions method, add a new category
 

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)




"Dave N" wrote 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

Jim Cone

Error with MarcoOptions method, add a new category
 

These two MS articles should also help...
http://support.microsoft.com/kb/q137526/
http://support.microsoft.com/kb/q213813/
Jim Cone


"Jim Cone"
wrote in message
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)




All times are GMT +1. The time now is 05:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com