Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Of course, that code requires an "End With" toward the bottom....
For J = 1 To 12 With oRange.Cells(J, 1) If .Value < "" Then objOther.Replace .Value, .Offset(0,1).Value End If End With Next Sorry about that, Bernie MS Excel MVP "Bernie Deitrick" <deitbe @ consumer dot org wrote in message ... Anyway, the upshot of the above is that you could try changing your code to: Dim oRange As Range Set objOther = sht2.Range("A4:H850") Set oRange = shtTotals.Cells(8, 1) For J = 1 To 12 With oRange.Cells(J, 1) If .Value < "" Then objOther.Replace .Value, .Offset(0,1).Value End If Next |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Speed of Replace Range | Excel Discussion (Misc queries) | |||
multi range identify & replace | Excel Worksheet Functions | |||
replace null cells within a range to 0 | Excel Discussion (Misc queries) | |||
replace a range of #'s e.g. 1.25 to 100 with text in excell | Excel Worksheet Functions | |||
How can I replace a range of blank cells with a 0 | Excel Discussion (Misc queries) |