Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with auto open routines

Status
Not open for further replies.

akn846

Technical User
Oct 16, 2001
51
GB
I have placed some code into the auto_activate routine within my spreadsheet, and whilst I know that the code works when I run it manually from the VBA editor - whenever I open the spreadsheet though this code is not being executed.

Can anyone suggest to me some reasons why the auto_activate function would not be called when the spreadsheet was being opened.

Many thanks

Andy
 
There is no such event as Auto_Activate. Perhaps you should name you sub Auto_Open.

Better still try the Workbook_Open(), which is available in ThisWorkbook code module.

A.C.
 
Try what acron suggested.

If you are in a workbook and are trying to execute code located in another workbook consider this:


Workbooks.Open ("\\LOUISE\pt\Plan Files\Plan.xls")
Application.Run "Plan.xls!PlanPageCode"


above run syntax: Workbookname!macroname
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top