mscallisto
Technical User
The following code is in sheet1 and bolds specific changes in cells N1 to T47
I also have a button on sheet1 that executes code to delete sheet1 and restore it to its original state by copying and pasting from another "template" sheet.
I discovered that when the code deletes sheet1 it triggers
Sub Worksheet_Change and all hell breaks loose (reboot required)!!!
Is there a way around this?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
With Target
set isect = Application.Intersect(Target,Range("N12:T47"))
If isect Is Nothing Then
' do nothing
else
If .Formula > .1 And .Formula < 25 Then
.Font.Bold = True
Else
.Font.Bold = False
End If
End If
End With
End Sub
I also have a button on sheet1 that executes code to delete sheet1 and restore it to its original state by copying and pasting from another "template" sheet.
I discovered that when the code deletes sheet1 it triggers
Sub Worksheet_Change and all hell breaks loose (reboot required)!!!
Is there a way around this?