Hi,
I am not sure how to put this. First time posting here, but been Reading ALOT!
What im trying to pull off:
i = 7
Do
If i / 2 > Int(i / 2) Then
Rows(i).Interior.ColorIndex = 15
End If
i = i + 1
Loop Until Sheets("MängderTest").Cells(i, 1).Value = ""
Range("C" & i).NumberFormat = "General"
Range("C" & i).Formula = "=SUMMA(C7:C" & i - 1 & ")"
I want to add a formula to the first free cell in the C column. when i run the macro get #NAME.
I then select the cell and the formula is there '=SUM(C7:C11)'
If I double click the cell and selects another cell the value of the formula will appear.
Do you know any tricks around this? Ive tried changing the format of the cell but with no success.
Many thanks in advance!
//Kenny
I am not sure how to put this. First time posting here, but been Reading ALOT!
What im trying to pull off:
i = 7
Do
If i / 2 > Int(i / 2) Then
Rows(i).Interior.ColorIndex = 15
End If
i = i + 1
Loop Until Sheets("MängderTest").Cells(i, 1).Value = ""
Range("C" & i).NumberFormat = "General"
Range("C" & i).Formula = "=SUMMA(C7:C" & i - 1 & ")"
I want to add a formula to the first free cell in the C column. when i run the macro get #NAME.
I then select the cell and the formula is there '=SUM(C7:C11)'
If I double click the cell and selects another cell the value of the formula will appear.
Do you know any tricks around this? Ive tried changing the format of the cell but with no success.
Many thanks in advance!
//Kenny