I have a workbook open function and want to perform a task only if a certain shape has been deleted. Below is the gist of my code.
[CODE=vb]With Sheets("JCS")
If ActiveSheet.Sha pes("Rounded Rectangle 1") = 0 Then
.Protect Password:="secr et", UserInterfaceOn ly:=True
.EnableOutlinin g = True
Else
End If
End With[/CODE]
I have tried having it equal 0 and also False and can't quite seem to figure it out. Any suggestions?
[CODE=vb]With Sheets("JCS")
If ActiveSheet.Sha pes("Rounded Rectangle 1") = 0 Then
.Protect Password:="secr et", UserInterfaceOn ly:=True
.EnableOutlinin g = True
Else
End If
End With[/CODE]
I have tried having it equal 0 and also False and can't quite seem to figure it out. Any suggestions?
Comment