C
Colin Vicary
Hi all
I have a worksheet tht contains year to date sales and sales for las
year. I want to show those sales as "last year to date". This means
have to know how far through the year we are!
I've set a variable to get that, but now I want to add it to th
formula in the macro.
I've tried this but it's wrong, can anyone tell me how to make i
right?
Thanks
Colin
Dim Mon As Integer
Mon = Month(today) - 1
ActiveCell.FormulaR1C1 = "=SUM(RC[(Mon-12)]:RC[-5])
I have a worksheet tht contains year to date sales and sales for las
year. I want to show those sales as "last year to date". This means
have to know how far through the year we are!
I've set a variable to get that, but now I want to add it to th
formula in the macro.
I've tried this but it's wrong, can anyone tell me how to make i
right?
Thanks
Colin
Dim Mon As Integer
Mon = Month(today) - 1
ActiveCell.FormulaR1C1 = "=SUM(RC[(Mon-12)]:RC[-5])