ThrottleWorks
Excel Ninja
Hi,
I am trying to use below mentioned codes to replace blank cells in the range with a string.
But somehow the code is not working, it is not giving any error but not giving result also.
Can someone help me in this please.
I am trying to use below mentioned codes to replace blank cells in the range with a string.
But somehow the code is not working, it is not giving any error but not giving result also.
Can someone help me in this please.
Code:
Sheet.Select
Set TempFieldRange = Range(Sheet.Cells(2, 1), Cells(LR6, 1))
On Error Resume Next
TempFieldRange.SpecialCells(xlCellTypeBlanks).Value = "abc"
On Error GoTo 0
For Each temp In TempFieldRange
If temp.Value = "" Then
temp.Value = "abc"
End If
i = i + 1
If temp <> "AAA" Then
Cells(i + 1, 3).Value = temp
End If
Next