PC Review


Reply
Thread Tools Rate Thread

Add-In: Functions and Category

 
 
Jack
Guest
Posts: n/a
 
      22nd Feb 2008
I have an add-in full of custom functions.

I also have a routine that assigns these functions to specific categories to
be used in the insert function dialog box.

How can I get this routine to run automatically when excel is opened. The
routine runs fine if I execute it manually. But I have tried various event
handlers within the add-in, but it never runs automatically. I have
accomplished this in the past, but I can't get it to work anymore.

Jack


 
Reply With Quote
 
 
 
 
Matthew Pfluger
Guest
Posts: n/a
 
      22nd Feb 2008
Have you tried using an Auto_Open routine? Put this code in a STANDARD code
module:
Sub Auto_Open()
' Call Subroutine Here
End Sub

Similarly:
Sub Auto_Close()
' Call Subroutine Here
End Sub

This should be called on opening or closing the workbook.
Matthew Pfluger


"Jack" wrote:

> I have an add-in full of custom functions.
>
> I also have a routine that assigns these functions to specific categories to
> be used in the insert function dialog box.
>
> How can I get this routine to run automatically when excel is opened. The
> routine runs fine if I execute it manually. But I have tried various event
> handlers within the add-in, but it never runs automatically. I have
> accomplished this in the past, but I can't get it to work anymore.
>
> Jack
>
>
>

 
Reply With Quote
 
Jack
Guest
Posts: n/a
 
      22nd Feb 2008
I have tried this before, If I run the Auto_Open in a standard module within
the add-in, I get the error message "Cannot edit a macro on a hidden
workbook. Unhide the workbook using the Unhide command"

What I am trying to run is a series of statements as follows:

Application.MacroOptions Macro:="CCRED08", _
Description:="Calculates the allowable amount of the child care
credit for the year 2008.", _
Category:="Tax Functions"

They work fine, just not from the add-in. I could run it from personal.xls
on my computer, but that does no good when we move the add-in around.

I know it is possible, because it has been done before, seems like I can't
find the correct event handler.


Jack



"Matthew Pfluger" <(E-Mail Removed)> wrote in
message news:BCF52A69-A3A2-43F7-901A-(E-Mail Removed)...
> Have you tried using an Auto_Open routine? Put this code in a STANDARD
> code
> module:
> Sub Auto_Open()
> ' Call Subroutine Here
> End Sub
>
> Similarly:
> Sub Auto_Close()
> ' Call Subroutine Here
> End Sub
>
> This should be called on opening or closing the workbook.
> Matthew Pfluger
>
>
> "Jack" wrote:
>
>> I have an add-in full of custom functions.
>>
>> I also have a routine that assigns these functions to specific categories
>> to
>> be used in the insert function dialog box.
>>
>> How can I get this routine to run automatically when excel is opened.
>> The
>> routine runs fine if I execute it manually. But I have tried various
>> event
>> handlers within the add-in, but it never runs automatically. I have
>> accomplished this in the past, but I can't get it to work anymore.
>>
>> Jack
>>
>>
>>



 
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
Send response based on category rule; auto remove category? tish Microsoft Outlook VBA Programming 3 31st Oct 2008 07:04 PM
Having User Defined functions in their own Insert Function category? Don Wiss Microsoft Excel Programming 1 25th Mar 2007 03:44 AM
outlook won't sort by category, when clicked it presents category. =?Utf-8?B?c2d0cGVu?= Microsoft Outlook Contacts 5 15th Oct 2005 11:41 AM
Category sort gets changed when adding category to multiple contac =?Utf-8?B?SnVkeQ==?= Microsoft Outlook Contacts 1 11th Jan 2005 10:51 PM
functions: 4 Millions Domains data with Category josephdomus@internetdrive.com Microsoft Excel Worksheet Functions 0 2nd Nov 2004 09:50 AM


Features
 

Advertising
 

Newsgroups
 


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