S
StargateFanNotAtHome
I don't believe this one has ever come up? I have a script that I
want to ask the user if it's okay to continue. It clears the data so
would like to give user to make sure that's what they want to do, esp.
since when one does this sort of thing programmatically, my
understanding is that there is no way to retrieve deleted information.
Here is the script (XL2003):
*******************************************
Sub ClearDATA()
'
ActiveSheet.Unprotect 'place at the beginning of the code
Range("B2100").Select
Selection.ClearContents
Range("J2:J100").Select
Selection.ClearContents
Range("M2:M100").Select
Selection.ClearContents
With ActiveSheet
.Rows("2:" & .Rows.Count).AutoFit
End With
Range("B2").Select
ActiveSheet.Protect 'place at the end of the code
End Sub
*******************************************
Thanks! D
want to ask the user if it's okay to continue. It clears the data so
would like to give user to make sure that's what they want to do, esp.
since when one does this sort of thing programmatically, my
understanding is that there is no way to retrieve deleted information.
Here is the script (XL2003):
*******************************************
Sub ClearDATA()
'
ActiveSheet.Unprotect 'place at the beginning of the code
Range("B2100").Select
Selection.ClearContents
Range("J2:J100").Select
Selection.ClearContents
Range("M2:M100").Select
Selection.ClearContents
With ActiveSheet
.Rows("2:" & .Rows.Count).AutoFit
End With
Range("B2").Select
ActiveSheet.Protect 'place at the end of the code
End Sub
*******************************************
Thanks! D