I'm trying to input a simple formula via VBA to sum data which has a variable range. I need something like =sum(variable range).
Column A Column B
1 Example 1 15
2 Example 2 20
3 Example 3 12
4 Example 4 5
5 Total: =sum(B1:B4)
This is what I am looking for; but my problem is that range B1:B4 might actual be B1:B10 depending on which project I'm in.
Bookmarks