Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there any way I can prevent the 'Workbook_BeforeClose' code module
running at the point where I have inserted the asterisks Sub NewName() Application.ScreenUpdating = False Application.EnableEvents = False 'other code ThisWorkbook.SaveCopyAs filename:="C:\Users\Sandy\Documents\NewBook.xls" ThisWorkbook.Close SaveChanges:=False ************ Application.ScreenUpdating = True Application.EnableEvents = True End Sub Thanks Sandy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to prevent vba code from running? | Excel Programming | |||
hide/protext auto_open code so user can't prevent it from running | Excel Programming | |||
how to prevent code running when in a worksheet code | Excel Programming | |||
Prevent code in "Sheet Activate" from running when sheet made visible from other macr | Excel Programming | |||
Prevent others from running my macros | Excel Programming |