Use of Range Property
Arnold,
You need to put
Exit Sub
as the last line before your error handler, for cases when you don't have an error.
HTH,
Bernie
MS Excel MVP
"Arnold Klapheck" wrote in message
...
This seems to be working (changing blanks to 0) but it is going into my
Errorhandler and returning 0: any idea why it is
returning an error? should I just take the errorhandler out?
Sub Zero_Fill_In()
On Error GoTo Errorhandler
Application.ScreenUpdating = False
Range("A2").CurrentRegion.SpecialCells(xlCellTypeB lanks).Value = 0
' also tried it with "0", does same thing
Errorhandler:
Dim Msg As String
Msg = Err.Number & ":" & Err.Description
MsgBox Msg
End Sub
"Bernie Deitrick" wrote:
Arnold,
Replace everything you have with
Range("A2").CurrentRegion.SpecialCells(xlCellTypeB lanks).Value = "0"
or
Range("A2").CurrentRegion.SpecialCells(xlCellTypeB lanks).Value = 0
|