Hi All,
I am trying to write a simple If statement inside a loop which applies to all rows which have a value in Column A.
The if statement just needs to check if each cell in Column H is empty and if so paste the value from the same row in Column K. This needs to repeat for every row which there is a value in Column A for.
Here is my code:
LRS = ThisWorkbook.Worksheets("Status").Range("A" & Rows.Count).End(xlUp).Row
Dim Cell As Range
For Each Cell In Range("H2:H" & LRS)
If Cell.Value = "" Then
Cell.FormulaR1C1 = "=RC11"
End If
Next Cell
Thanks in advance, I'm a VBA noob and I've been searching all over for solutions!
I am trying to write a simple If statement inside a loop which applies to all rows which have a value in Column A.
The if statement just needs to check if each cell in Column H is empty and if so paste the value from the same row in Column K. This needs to repeat for every row which there is a value in Column A for.
Here is my code:
LRS = ThisWorkbook.Worksheets("Status").Range("A" & Rows.Count).End(xlUp).Row
Dim Cell As Range
For Each Cell In Range("H2:H" & LRS)
If Cell.Value = "" Then
Cell.FormulaR1C1 = "=RC11"
End If
Next Cell
Thanks in advance, I'm a VBA noob and I've been searching all over for solutions!