Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automate Open an XLS without running macro
I've created an XLS containing macro that I use as a template. I create
another XLS that contains macro to extract data from Access and populate into the XLS template for each person. The problem is that once the code open the template, it always asks whether I want to disable or enable the macro. Is there a way for my code in the second XLS to open the template and disable the macro because it has events in there that I don't want to run while I populate the data. Thanks for your help. Mat |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automate Open an XLS without running macro
Apart perhaps from Sendkeys I don't think so. Maybe you could temporarily
disable Events, but be careful to include error handling to ensure events are re-enabled when done. Alternatively flag something that the code in the other wb will recognise to early exit event code. Regards, Peter T "matelot" wrote in message ... I've created an XLS containing macro that I use as a template. I create another XLS that contains macro to extract data from Access and populate into the XLS template for each person. The problem is that once the code open the template, it always asks whether I want to disable or enable the macro. Is there a way for my code in the second XLS to open the template and disable the macro because it has events in there that I don't want to run while I populate the data. Thanks for your help. Mat |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Automate Open an XLS without running macro
Thanks Peter. I'll try your approach. It sounds like it's going to work.
"Peter T" wrote: Apart perhaps from Sendkeys I don't think so. Maybe you could temporarily disable Events, but be careful to include error handling to ensure events are re-enabled when done. Alternatively flag something that the code in the other wb will recognise to early exit event code. Regards, Peter T "matelot" wrote in message ... I've created an XLS containing macro that I use as a template. I create another XLS that contains macro to extract data from Access and populate into the XLS template for each person. The problem is that once the code open the template, it always asks whether I want to disable or enable the macro. Is there a way for my code in the second XLS to open the template and disable the macro because it has events in there that I don't want to run while I populate the data. Thanks for your help. Mat |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Running macro on file open | Excel Discussion (Misc queries) | |||
Running macro on open of workbook? | Excel Programming | |||
macro not running on workbook open | Excel Programming | |||
Files won't open after running a macro | Excel Programming | |||
Auto Running a macro on open | Excel Programming |