This line is all part of a larger macro, but these are the two important parts. I am trying to do a sum function for a range that changes. I have 'i' dimmed as an integer, 'i' is to change the row as the loop runs. I want to sum a range on the current row the loop is on, but right now I do not know how to write the range so that I can use a syntax similar something like ("A" & i). Can someone see below and let me know how I can rewrite this?
Dim i as integer
Sheets("input").sum(range(("A" & i) : ("D" & i))
Dim i as integer
Sheets("input").sum(range(("A" & i) : ("D" & i))