Hi
I have a range which has empty cells and either numbers or a piece of text.
Currently, I use a For/Next loop to go through each cell one-by-one but it takes a while to do this as the "Rota" range it's looking at is 7 columns by 165 rows.
Is there a faster and more efficient way of doing this?
Thanks
Liam
I have a range which has empty cells and either numbers or a piece of text.
Currently, I use a For/Next loop to go through each cell one-by-one but it takes a while to do this as the "Rota" range it's looking at is 7 columns by 165 rows.
Code:
For Each ShiftCell In Range("Rota")
If ShiftCell <> "" Then
If IsNumeric(ShiftCell) Then
ShiftCell.Value = "HOL-" & ShiftCell
Else
If ShiftCell = "O" Then ShiftCell.Value = "OFF"
End If
End If
Next ShiftCell
Is there a faster and more efficient way of doing this?
Thanks
Liam