I need to select items from a pivot table based on dates. The pivot is based on a list of employees who have left, and I have grouped the leaving dates by month, using the =Date() function, ie:
Date Month
15/03/2008 01/03/2008
26/04/2008 01/04/2008
02/03/2008 01/03/2008
I use Month Column to group records in my pivot table, and I want to select certain groups based on that Month. Ideally, I want the macro to select all records where the month starts with the month before the month that it's run (if it's run in August, it should start with July) and then select 12 month's of historical information: July, June, May,...
I'm sure that a looped array will take care of this, but it's translating dates to text that's causing me a headache.
Date Month
15/03/2008 01/03/2008
26/04/2008 01/04/2008
02/03/2008 01/03/2008
I use Month Column to group records in my pivot table, and I want to select certain groups based on that Month. Ideally, I want the macro to select all records where the month starts with the month before the month that it's run (if it's run in August, it should start with July) and then select 12 month's of historical information: July, June, May,...
I'm sure that a looped array will take care of this, but it's translating dates to text that's causing me a headache.