update range in For loop

  • Thread starter Thread starter Guest
  • Start date Start date
Select a cell, press Ctrl + 1, select the Number tab, it will be highlighted
in the left listbox.
 
what is highlighted is general not text.
so, I guess the format of the cells is not set to Text.

Thanks
 
You might then try ..

If Clng(Cells(row, col).Value) <> 0 Then
Cells(row, col).Value = 1

... making use of the coerce/long function.
 
Back
Top