Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Workbook_Open()
Worksheets("Sheet2").Select Call Macro1 End Sub I am getting an error of: 'Compile error: Sub or Function not defined' Yet if i manually run the macro it works fine?? Corey.... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Corey,
Where is "macro1" ? Public in a normal module ? NickHK "Corey" wrote in message ... Sub Workbook_Open() Worksheets("Sheet2").Select Call Macro1 End Sub I am getting an error of: 'Compile error: Sub or Function not defined' Yet if i manually run the macro it works fine?? Corey.... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Macro1 is in the code for the Thisworkbook
Is'nt that were anything to run when opening is to be placed? ctm "NickHK" wrote in message ... Corey, Where is "macro1" ? Public in a normal module ? NickHK "Corey" wrote in message ... Sub Workbook_Open() Worksheets("Sheet2").Select Call Macro1 End Sub I am getting an error of: 'Compile error: Sub or Function not defined' Yet if i manually run the macro it works fine?? Corey.... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry i made a mistake.
Macro1 is in the code for Sheet2. AHHH Thanks for the pointer. I moved it to a Module and it now is fine. Thanks Corey.... .... "NickHK" wrote in message ... Corey, Where is "macro1" ? Public in a normal module ? NickHK "Corey" wrote in message ... Sub Workbook_Open() Worksheets("Sheet2").Select Call Macro1 End Sub I am getting an error of: 'Compile error: Sub or Function not defined' Yet if i manually run the macro it works fine?? Corey.... |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Corey,
Where is Macro1 housed? --- Regards, Norman "Corey" wrote in message ... Sub Workbook_Open() Worksheets("Sheet2").Select Call Macro1 End Sub I am getting an error of: 'Compile error: Sub or Function not defined' Yet if i manually run the macro it works fine?? Corey.... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Workbook_Open code help | Excel Discussion (Misc queries) | |||
Range.Select error and screen maximizing error in Workbook_Open() | Excel Programming | |||
Range.Select error and screen maximizing error in Workbook_Open() | Excel Programming | |||
Deleting Workbook_Open code | Excel Discussion (Misc queries) | |||
Removing Workbook_Open code | Excel Programming |