Code Chaser
New Member
- Joined
- Nov 23, 2016
- Messages
- 8
I am trying to make the row number dependent on the "temp" variable. But I keep getting an error. How should I write the code so the it will run?
Thanks.
Dim Temp As Integer
Temp = ActiveSheet.Range("A1").End(xlDown).Row - 1
Range("I" & Temp + 1).Formula = "= sum(I3:I" & temp")"
Thanks.
Dim Temp As Integer
Temp = ActiveSheet.Range("A1").End(xlDown).Row - 1
Range("I" & Temp + 1).Formula = "= sum(I3:I" & temp")"