Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Add-In: Functions and Category

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Add-In: Functions and Category

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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Add-In: Functions and Category

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" wrote in
message ...
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
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
A SUB CATEGORY USING DATA VALIDATION? ALRDY USNG DV FOR CATEGORY sameer Excel Discussion (Misc queries) 2 January 11th 10 12:55 PM
Query on Category & Sub-category Santha Kumar Excel Discussion (Misc queries) 1 April 25th 07 12:30 PM
Having User Defined functions in their own Insert Function category? Tom Ogilvy Excel Programming 0 March 25th 07 03:44 AM
Conversion from Spreadsheet Toolkit functions (ESSV....) to EssBase API functions sujay Excel Programming 0 June 5th 06 10:13 AM
Add a category to the Insert-Function category list Tony Seiscons Excel Programming 1 September 22nd 04 02:41 PM


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

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"