LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default MacroOptions doesn't stick

I have an add-in with custom functions. I'm trying to use MacroOptions to
add descriptions for them in the Insert Function dialog, and to create
custom categories for them, and put them in the custom categories.

It works fine if I just run the code and then look at the Insert Function
dialog. But if I exit and restart Excel (2003), the custom category is gone
and the custom function is listed in the Engineering category (I have no
idea why it gets put there).

I tried putting the code in the Workbook_AddinInstall event, and unchecking
the Add-in from the Add-Ins dialog and then rechecking it. Again, works fine
until I restart Excel, then it's back to the same problem.

I tried the putting it in the Workbook_Open event, but that gives me an
error message about not being able to edit a hidden workbook. I tried
putting it in the main module's auto_open (which otherwise works fine), but
it doesn't seem to do anything there.

Any idea what I need to do differently? My code is like this:

Application.MacroOptions "MyFunction", "This is the description for
MyFunction.", , , , , "My Category"


Thanks,

Greg


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Method 'MacroOptions' of object'_Application' failed Runtime Error 1004 EagleOne Excel Discussion (Misc queries) 1 October 22nd 14 05:49 PM
Options Won't Stick EarlePearce Setting up and Configuration of Excel 4 September 7th 07 01:44 AM
Need help getting pictures to stick! shugarmags Excel Discussion (Misc queries) 0 March 6th 07 09:21 PM
Row Stick Dave Excel Discussion (Misc queries) 1 November 2nd 06 12:16 PM
Format won't stick tallyman00 Excel Discussion (Misc queries) 2 January 19th 06 02:55 PM


All times are GMT +1. The time now is 07:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"