chriscorpion786
Board Regular
- Joined
- Apr 3, 2011
- Messages
- 108
- Office Version
- 365
- Platform
- Windows
Hi ,
Can anyone tell me how to sum a range with R1C1 notation using a variable to go two cells left from the active cell, for eg:
Activecell.value = "=sum(rc[-2]:rc[-1] ' this works perfectly but when I use a variable I cannot make it work...
Activecellvalue = "=sum(rc & "[- lastcol +4 ]" :rc[-1] 'this does not work.
Multiple examples would be great if possible.
Thank you in advance.
Can anyone tell me how to sum a range with R1C1 notation using a variable to go two cells left from the active cell, for eg:
Activecell.value = "=sum(rc[-2]:rc[-1] ' this works perfectly but when I use a variable I cannot make it work...
Activecellvalue = "=sum(rc & "[- lastcol +4 ]" :rc[-1] 'this does not work.
Multiple examples would be great if possible.
Thank you in advance.