There's a couple of ways. One I like is to check the current login ID. then, if it's YOURS, prompt you for permission to execute.
Another way is to check the path. I copy the file to a Development location before opening. Since it is NOT in the "production" path, it does not automatically run. Paul ----- Original Message ---- > From: Richard <[email protected]> > To: MS EXCEL AND VBA MACROS <[email protected]> > Sent: Wed, December 15, 2010 1:10:06 PM > Subject: $$Excel-Macros$$ Command Line > > I have a workbook that I would like to have updated nightly by the > scheduler. To that end, I have created a sub workbook_open that calls > the macro that I need to run. > > How do I stop the macro from running when I open the workbook > manually? I know I can open the workbook holding down the shift key > and the macros are disabled, but I want something a little more idiot > proof. > > Thanks in advance > > Rich > > -- >---------------------------------------------------------------------------------- >- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : >http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to [email protected] > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wall&ref=ts > -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to [email protected] <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wall&ref=ts
