M
MikeM
I'm trying to format a sequence of columns, but without success. I've used:
Sub x()
Dim i As Integer, iCol As Integer
For i = 1 To 47
iCol = 12 + 7 * (i - 1)
Range(Cells(, iCol), Cells(, iCol + 2)).NumberFormat = "0.00"
Next i
End Sub
I've tried columns(icol, icol+2) as well. Any ideas?
TIA,
Mike
Sub x()
Dim i As Integer, iCol As Integer
For i = 1 To 47
iCol = 12 + 7 * (i - 1)
Range(Cells(, iCol), Cells(, iCol + 2)).NumberFormat = "0.00"
Next i
End Sub
I've tried columns(icol, icol+2) as well. Any ideas?
TIA,
Mike