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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto run code on workbook opening

Status
Not open for further replies.

eti3nne

MIS
Feb 5, 2004
102
I have a command button on one sheet of a workbook which causes some sorting and other activities when clicked.

I need to get the code to run once when I first load/open the workbook. I have tried setting the AutoLoad property of the command button to true, but this does not seem to do anything.

Any ideas how/where I could get this to work?

Thanks for looking.
 
In VBE display workbook's module (double-click ThisWorkbook icon in project explirer window), from the left drop-down list choose Workbook (default: General), you should see 'Open' in the right drop-down.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top