Hi,
I have a code
However, this code does not seem to work when I enter it in a different module. I can trying to amend this code so it is able to work. I need the code to go through each cell in the specific range and if a cell is blank then enter the string "N/A". If you are able to help that'll be much appreciated.
Thanks
I have a code
Code:
For Each cel In rng If IsEmpty(cel.Value) Or cel.Value = vbNullString Then
cel.Value = "N/A"
End If
Next cel
However, this code does not seem to work when I enter it in a different module. I can trying to amend this code so it is able to work. I need the code to go through each cell in the specific range and if a cell is blank then enter the string "N/A". If you are able to help that'll be much appreciated.
Thanks