Fill in zeros within a specified range
Give this code a try (just define the range in the Set statement; everything
after the Set statement works automatically)...
Dim MyRange As Range
Set MyRange = Worksheets("Sheet3").Range("H8:H36")
If MyRange(MyRange.Count).Value = "" Then MyRange(MyRange.Count).Value = 0
MyRange.SpecialCells(xlCellTypeBlanks).Value = "0"
Rick
"electricbluelady" wrote in
message ...
Hi everyone,
I have a range of 30 cells in a column, but most have numbers, and some
are
blank. I need to write a procedure to replace blank cells with zeros, and
to
skip over existing numbers. I need to keep this within the 30 cells in my
range. Any help would be greatly appreciated!
Thank you,
Electricbluelady
|