nichola.hartley
New Member
- Joined
- Jun 23, 2011
- Messages
- 3
Hi.
I have a report with a rolling date field from an OLAP cube - eg sales for previous 3 months March, April and May are shown. So in Junes report I want to update this rolling 3 month period to then show April, May and June.
I can do this with a macro but only if i have a specific macro for each month telling it specifically what month to take off and what month to add on - this there a way to do this with one macro rather than 12?! Ie tell it to take off and add this month so i can run the same macro at the start of each month?
Thanks for your help!
I have a report with a rolling date field from an OLAP cube - eg sales for previous 3 months March, April and May are shown. So in Junes report I want to update this rolling 3 month period to then show April, May and June.
I can do this with a macro but only if i have a specific macro for each month telling it specifically what month to take off and what month to add on - this there a way to do this with one macro rather than 12?! Ie tell it to take off and add this month so i can run the same macro at the start of each month?
Thanks for your help!