Feb 28, 2003 #1 WantsToLearn Programmer Joined Feb 15, 2003 Messages 147 Location US Where do I go to designate a macro as being an autoexec macro (eg it runs immediately when the workbook file opens). Thanks!
Where do I go to designate a macro as being an autoexec macro (eg it runs immediately when the workbook file opens). Thanks!
Feb 28, 2003 #2 LSTAN Technical User Joined Feb 2, 2002 Messages 190 Location SG Hi Do it at the ThisWorkBook module. Choose the Workbook_Open() procedure. eg: Private Sub Workbook_Open() ' 'Code to execute when workbook is 'open ' End Sub Alternate you can insert a blank module and have the Auto_open() procedure in it. eg: Sub Autpen() ' 'Code to execute when workbook is 'open ' End Sub LSTAN Upvote 0 Downvote
Hi Do it at the ThisWorkBook module. Choose the Workbook_Open() procedure. eg: Private Sub Workbook_Open() ' 'Code to execute when workbook is 'open ' End Sub Alternate you can insert a blank module and have the Auto_open() procedure in it. eg: Sub Autpen() ' 'Code to execute when workbook is 'open ' End Sub LSTAN
Feb 28, 2003 #3 SBendBuckeye Programmer Joined May 22, 2002 Messages 2,166 Location US Duh! Thanks, LStan! I had a brain cramp. Have a great weekend! Upvote 0 Downvote