Hi
I start with:
Sub test2()
With ActiveCell
.Formula = "=SUM(" & _
.Offset(-8, 0).Address(0, 0) & ":" & _
.Offset(-1, 0).Address(0, 0) & ")"
End With
End Sub
While this is hardcoded, I would be happy with help, putting in a variabel instead. In my macro it is the first/upper row which is to be set
It could be with reference to:
FirstRow
LastRow or CurrentRegion
Kind regards
Geir
I start with:
Sub test2()
With ActiveCell
.Formula = "=SUM(" & _
.Offset(-8, 0).Address(0, 0) & ":" & _
.Offset(-1, 0).Address(0, 0) & ")"
End With
End Sub
While this is hardcoded, I would be happy with help, putting in a variabel instead. In my macro it is the first/upper row which is to be set
It could be with reference to:
FirstRow
LastRow or CurrentRegion
Kind regards
Geir