Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I recently switched from Excel 2000 to Excel 2003. This code worked fine in my old version to create a reference to an add-in file. Can you please tell me what has to be changed to work in 2003? Private Sub Workbook_Open() On Error Resume Next With ThisWorkbook.VBProject .References.AddFromFile ("J:\Macros.xla") End With Call Restore_Submenu End Sub Thanks, Wes |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There is a new security setting in Excel 2002 and 2003 that may have caused
the problem. Check Tools, Macro, Security, Trusted Publishers, Trust Access to Visual Basic Project. This option must be selected. -- Jim Rech Excel MVP "Wes" wrote in message ... | Hello, | | I recently switched from Excel 2000 to Excel 2003. This | code worked fine in my old version to create a reference | to an add-in file. Can you please tell me what has to be | changed to work in 2003? | | Private Sub Workbook_Open() | | On Error Resume Next | With ThisWorkbook.VBProject | .References.AddFromFile ("J:\Macros.xla") | End With | | Call Restore_Submenu | | End Sub | | | Thanks, | Wes |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I create a 3-D reference from multiple workbooks | Excel Worksheet Functions | |||
Using a cell in formula to create a reference | Excel Worksheet Functions | |||
How do I create a unique spreadsheet reference? | Excel Worksheet Functions | |||
Inability to create remote reference | Excel Discussion (Misc queries) | |||
Nesting? How do I create a table to reference? | Excel Discussion (Misc queries) |