Overkill32
New Member
- Joined
- May 13, 2011
- Messages
- 49
Hello all
I have a question regarding the macros that run automatically when a file is open. I'm currently having problems with a set of workbook with whom I need to extract data from. Each time I try to open one of the files I need, an error comes up because of 1 line in the PrivateSub Workbook_Open() that makes a reference to another file that doesnt exist anymore. Is there a way i can code my loop so it doesn't run these macros each time i ask it to open the file?
One way I thought could work was to code the file opening with an "hold shift key down" command but I don't if it's possible....
I already tried the Application.AutomationSecurity = msoAutomationSecurityForceDisable and the " On error Resume" Command and they are not working...
Thanks for the help
I have a question regarding the macros that run automatically when a file is open. I'm currently having problems with a set of workbook with whom I need to extract data from. Each time I try to open one of the files I need, an error comes up because of 1 line in the PrivateSub Workbook_Open() that makes a reference to another file that doesnt exist anymore. Is there a way i can code my loop so it doesn't run these macros each time i ask it to open the file?
One way I thought could work was to code the file opening with an "hold shift key down" command but I don't if it's possible....
I already tried the Application.AutomationSecurity = msoAutomationSecurityForceDisable and the " On error Resume" Command and they are not working...
Thanks for the help