F
Fred
I have the following procedure at the worksheet level in
an Excel workbook. It essentially keeps the worksheet
protected upon a selection change. I need to deactivate
this procedure when a macro is run from a button and then
reactivate it when the button macro has been completed.
Any thoughts?
Private Sub Worksheet_SelectionChange(ByVal Target As
Range)
ActiveSheet.Protect DrawingObjects:=True,
Contents:=True, _
Scenarios:=True, AllowDeletingRows:=True
End Sub
an Excel workbook. It essentially keeps the worksheet
protected upon a selection change. I need to deactivate
this procedure when a macro is run from a button and then
reactivate it when the button macro has been completed.
Any thoughts?
Private Sub Worksheet_SelectionChange(ByVal Target As
Range)
ActiveSheet.Protect DrawingObjects:=True,
Contents:=True, _
Scenarios:=True, AllowDeletingRows:=True
End Sub