![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Feb 2002
Location: Adelaide, Australia
Posts: 182
|
I wish to open a file using a macro (which I can do OK) but I want to disable the macros in the new file - any help is appreciated.
Thnx Stuart |
|
|
|
|
|
#2 |
|
MrExcel MVP
Admin Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,639
|
To disable events (i.e., workbook_open)
add: application.enableevents = false to your code. Auto events (i.e., auto_open) will not run while opening a workbook with vba. Hold the shift key while closing it, if you're not closing it using vba. Cheers, Nate [ This Message was edited by: NateO on 2002-02-25 15:16 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|