DanG
Registered User.
- Local time
- Yesterday, 19:39
- Joined
- Nov 4, 2004
- Messages
- 477
I am finding I can tweak VBA and understand it, but not much good at writing it myself.
I would like to loop through a column and if there is no value in the current cell I want that cell to equal the value of the cell above it.
Here is what I have...
I think I am close but not quite there.
Thank you
I would like to loop through a column and if there is no value in the current cell I want that cell to equal the value of the cell above it.
Here is what I have...
Code:
Sub NewSSN()
Dim myrange As Range
Dim Cell As Range
Dim rngOutput As Range
Set myrange = Range("$a$1", Range("a65536").End(xlUp))
Set rngOutput = ActiveCell
'' On Error Resume Next
For Each Cell In myrange
If Len(Cell) = 0 Then
rngOutput = Cell.Offset(-1).Value
End If
Next Cell
End Sub
I think I am close but not quite there.
Thank you