VBA Do Until
One way:
Const csFORMULA = "<your formula here"
Dim rB As Range
Set rB = Range("B1")
Do Until IsEmpty(rB.Value)
rB.Offset(0, -1).Formula = csFORMULA
Loop
In article ,
Brent E wrote:
Good morning,
I need a VBA module to do the following:
For each cell in ColB that is not blank or null,
paste formula in ColA corresponding cell.
So something like
Do Until
ColB cell is blank
Paste formula in colA cell
End.
Please assist.
Thanks Much,
|