Zeros in blanks

M

MikeF

I have zeros for blanks turned off as an Excel option.
But in some ranges on some sheets, need a "if cell value = "" then make it
zero" routine.

Best suggestions??

Thanx,
- Mike
 
G

Gary''s Student

Select a range and then:

Sub noBlank()
For Each r In Selection
If r.Value = "" Then
r.Value = 0
End If
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top