Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using a 2002 Excel workbook Auto_Open marco to run a macro in an
Addin.xla that I created. The workbook macro contains a procedure - Range("WorkbookName") = ActiveWorkbookName - because the Addin is intended to be used with workbooks with variable names. The Addin Marco that is called from the Auto_Open macro contains the following procedure - WBFilename = Worksheets("Calculations").Range("WorkbookName"). WBFileName is used in many macros in the Addin to identify the workbook. At the point of such Addin macro I get a message "Run-Time error '9': subscript out of range". When I run the Auto_Open macro from the VBA menu "Run" the error does not happen, and both macros work fine. Why do I get the error message? If you would like, I can email a sample of these two macros. I have tried lots of ways to solve this, but have not been successful. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I identify Filter criteria or variable graph title? | Excel Discussion (Misc queries) | |||
Use of variable to identify range of sheets in a workbook | Excel Discussion (Misc queries) | |||
Excel 2003 Referencing multiple workbooks via single variable | Excel Worksheet Functions | |||
Public variable is reset after addin macro completes - thread/focus pblm? | Excel Programming | |||
Remove Excel AddIn from AddIn List !! Help | Excel Programming |