Well, looking at your spreadsheet, you would need to add to one of the sheets a formula =MAX(DataSource!A:A), if you put it on Sheet2, then you would change the code I wrote as follows (change Sheet8 to Sheet2 or wherever you put it):
Note I changed the pivottable name to PivotTable1, which you can find when you click on the Pivot Table and go to Properties I also changed the name of the field to what you are using (YYYY-MM)

Originally Posted by
camdameron
Hi there,
I think this is what I need for my own situation!
Can you please assist in translating what the above code means in relation to my attached sample sheet?
I'd be forever grateful!
Thanks!
Cameron
Bookmarks