Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My worksheet change event macro is like this:
Private Sub Worksheet_Change(ByVal Target As Range) Dim n As Integer Application.ScreenUpdating = False Application.EnableEvents = False 'prevents change event indefinite loop <Loop macro resets formulas in 20 rows in one column using counter n Application.EnableEvents = True Application.ScreenUpdating = True End Sub The macro works sometimes but fails intermittently. This happens even if I comment out the EnableEvents = False/True code. Any ideas on why it could be failing and/or how I could investigate would be appreciated, thanks. -- Partho |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet Change event not running a macro | Excel Programming | |||
Worksheet.Unprotect within WorkbookBeforeSave event fails if Save | Excel Programming | |||
Worksheet.Unprotect within WorkbookBeforeSave event fails if Save initiated by VB | Excel Programming | |||
Cell value change to trigger macro (worksheet change event?) | Excel Programming | |||
Change event fails to work | Excel Worksheet Functions |