S
scott
If Column F I have numbers with a decimal like 99.64 that I need to multiply
by 1000 all the way down. I tried below code to go down E2 until last cell
and multiply the value of the cell in column F (1 cell to right of E column
I'm testing if data exists). I'm getting an error, can someone help me out?
What am I missing?
Sub ConvertDecimals()
Dim c As Range
'set a range variable equal to the first data cell in column E
Set c = ActiveSheet.Range("E2")
'loop until a blank is encountered
Do While c <> ""
c.Offset(0, 1).Value = (c.Offset(0, 1).Value) * 1000
'set c to the next cell down
Set c = c.Offset(1, 0)
Loop
End Sub
by 1000 all the way down. I tried below code to go down E2 until last cell
and multiply the value of the cell in column F (1 cell to right of E column
I'm testing if data exists). I'm getting an error, can someone help me out?
What am I missing?
Sub ConvertDecimals()
Dim c As Range
'set a range variable equal to the first data cell in column E
Set c = ActiveSheet.Range("E2")
'loop until a blank is encountered
Do While c <> ""
c.Offset(0, 1).Value = (c.Offset(0, 1).Value) * 1000
'set c to the next cell down
Set c = c.Offset(1, 0)
Loop
End Sub