Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How do you disable a macro from within another macro eg
Sub Sample_Data() disable macro - "Private Sub Worksheet_Change(ByVal Target As Excel.Range)" macro "Sample_Data" does its thing enable - "Private Sub Worksheet_Change(ByVal Target As Excel.Range)" End Sub Thanks Sandy |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sub Sample_Data()
Application.EnableEvents = False macro "Sample_Data" does its thing Application.EnableEvents = True End Sub -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Sandy" wrote in message ... How do you disable a macro from within another macro eg Sub Sample_Data() disable macro - "Private Sub Worksheet_Change(ByVal Target As Excel.Range)" macro "Sample_Data" does its thing enable - "Private Sub Worksheet_Change(ByVal Target As Excel.Range)" End Sub Thanks Sandy |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Perfect thank you
Sandy "Bob Phillips" wrote in message ... Sub Sample_Data() Application.EnableEvents = False macro "Sample_Data" does its thing Application.EnableEvents = True End Sub -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Sandy" wrote in message ... How do you disable a macro from within another macro eg Sub Sample_Data() disable macro - "Private Sub Worksheet_Change(ByVal Target As Excel.Range)" macro "Sample_Data" does its thing enable - "Private Sub Worksheet_Change(ByVal Target As Excel.Range)" End Sub Thanks Sandy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
disable user running macro from Tools Macro | Excel Discussion (Misc queries) | |||
macro Runtime Error | Excel Discussion (Misc queries) | |||
Runtime error for macro that works in workbook created in | Excel Discussion (Misc queries) | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) | |||
disable macro warning | Excel Discussion (Misc queries) |