ChrisBurch
IS-IT--Management
Hi all,
I'm getting a 424 'Object required' when the following sub gets to the option button state change.
Can anyone assist?
Sub Blank_Sheet()
'
' Blank_Sheet Macro
' Macro recorded 28/02/2002 by Chris Burch
'
On Error GoTo ErrorHandler
ActiveSheet.Unprotect
' Clear the sheet contents
Range("B44,A17:J44".Select
Selection.ClearContents
Range("B4".Activate
'Make sure sheet status is set to 'Part',
'by setting option buttons
OptComp.Value = False 'Option button
OptPart.Value = True 'Option button
ActiveSheet.Protect
ErrorExit:
Exit Sub
ErrorHandler:
MsgBox "Error " & Err.Number & vbCrLf & Err.Description, vbExclamation
Resume Next 'ErrorExit
End Sub Chris
It worked yesterday.
It doesn't work today.
That's Windows!
I'm getting a 424 'Object required' when the following sub gets to the option button state change.
Can anyone assist?
Sub Blank_Sheet()
'
' Blank_Sheet Macro
' Macro recorded 28/02/2002 by Chris Burch
'
On Error GoTo ErrorHandler
ActiveSheet.Unprotect
' Clear the sheet contents
Range("B44,A17:J44".Select
Selection.ClearContents
Range("B4".Activate
'Make sure sheet status is set to 'Part',
'by setting option buttons
OptComp.Value = False 'Option button
OptPart.Value = True 'Option button
ActiveSheet.Protect
ErrorExit:
Exit Sub
ErrorHandler:
MsgBox "Error " & Err.Number & vbCrLf & Err.Description, vbExclamation
Resume Next 'ErrorExit
End Sub Chris
It worked yesterday.
It doesn't work today.
That's Windows!