Mar 28, 2002 #1 loo Technical User Nov 28, 2001 13 US How do I have a macro run automatically when a workbook is opened?
Mar 28, 2002 #2 LSTAN Technical User Feb 2, 2002 190 SG Hi loo Put the intended code in the Workbook activate event Private Sub Workbook_Activate() ' 'your code here ' End Sub another alternative is have a Autpen procedure in a module Sub Autpen() ' 'your code here ' End Sub Rgrds LSTAN Upvote 0 Downvote
Hi loo Put the intended code in the Workbook activate event Private Sub Workbook_Activate() ' 'your code here ' End Sub another alternative is have a Autpen procedure in a module Sub Autpen() ' 'your code here ' End Sub Rgrds LSTAN
Mar 28, 2002 Thread starter #3 loo Technical User Nov 28, 2001 13 US I found it... name the macro Macro_open and it runs on open... too simple Upvote 0 Downvote
Mar 28, 2002 Thread starter #4 loo Technical User Nov 28, 2001 13 US oops Auto_open Upvote 0 Downvote