PC Review


Reply
Thread Tools Rate Thread

Add-in - add a custom function to a custom group.

 
 
Spencer Hutton
Guest
Posts: n/a
 
      4th Dec 2007
I have an Add-in that contains several custom functions. i want to add them
to a custom function category group named "MyFunctions". Here is the code i
have that runs with the Workbook_Open event.

Sub AddFunctionsToCategory()
Application.MacroOptions Macro:="FUNCNAME", Description:="Function Desc",
Category:= "MyFunctions"
End Sub

However, when the add-in loads, i receive a run-time error 1004 "Cannot edit
a mcaro on a hidden workbook" the .xla file is set to IsAddIn = True and i
dont want to unhide/rehide it with VBA before it loads. what is the answer?
 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      4th Dec 2007
Look here:

http://www.jkp-ads.com/Articles/RegisterUDF00.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Spencer Hutton" <(E-Mail Removed)> wrote in message
news:8C02AAEA-F255-4547-88A8-(E-Mail Removed)...
|I have an Add-in that contains several custom functions. i want to add them
| to a custom function category group named "MyFunctions". Here is the code i
| have that runs with the Workbook_Open event.
|
| Sub AddFunctionsToCategory()
| Application.MacroOptions Macro:="FUNCNAME", Description:="Function Desc",
| Category:= "MyFunctions"
| End Sub
|
| However, when the add-in loads, i receive a run-time error 1004 "Cannot edit
| a mcaro on a hidden workbook" the .xla file is set to IsAddIn = True and i
| dont want to unhide/rehide it with VBA before it loads. what is the answer?


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when adding custom help file to custom function Sabotuer99 Microsoft Excel Programming 1 19th Jul 2008 01:46 PM
How to add custom object group aslank Windows XP Embedded 2 13th May 2008 12:23 AM
Creating a custom function to interpret another custom engine func Ryan Microsoft Excel Programming 0 3rd Mar 2008 07:18 PM
Emulate Index/Match combo function w/ VBA custom function =?Utf-8?B?U3BlbmNlciBIdXR0b24=?= Microsoft Excel Worksheet Functions 2 2nd May 2005 05:26 PM
Adding a custom function to the default excel function list DonutDel Microsoft Excel Programming 3 21st Nov 2003 03:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:22 PM.