mikecox39
Active Member
- Joined
- Mar 5, 2014
- Messages
- 251
- Office Version
- 365
- Platform
- Windows
I'm treasurer of my HOA and every year I save my current Budget workbook, and create a new one using Save As and incrementing the integer by 1. For example, MB18 gets Saved As MB19.
I then clear the data using a macro to start the new year.
One of the problems with that is I don't get last years Income/Exp data for the new workbooks Budget sheet. I'm sure there is a formula or method that would pull that data in, but the name of the relevant workbook changes every year so the formula would have to change with it.
My goal is to create a macro that would run on June 30th of every year that creates a new, clean, budget workbook, with last year's Income/Exp data but to do that the previous years workbook name must be known.
I imagine a formula that would use the integer in the current workbook's filename to generated the previous years filename, by subtracting 1 from the integer of the current workbooks filename. So MB19 become MB18, where last years Income/Exp data resides.
The result could be saved in a cell and used in the formula for identifying last year's workbook, where the needed Income/Exp data is stored.
That would make it possible to automate the entire process.
Is that way too complicated? Is there a better option for accomplishing my goal?
Anyone interested in taking this on?
Here is my current workbook, cleared and ready for next year, but minus last years Income/Exp data needed for the Budget sheet.
https://app.box.com/s/tng7y5aybn345b2idvu80e8zhozatclb
I then clear the data using a macro to start the new year.
One of the problems with that is I don't get last years Income/Exp data for the new workbooks Budget sheet. I'm sure there is a formula or method that would pull that data in, but the name of the relevant workbook changes every year so the formula would have to change with it.
My goal is to create a macro that would run on June 30th of every year that creates a new, clean, budget workbook, with last year's Income/Exp data but to do that the previous years workbook name must be known.
I imagine a formula that would use the integer in the current workbook's filename to generated the previous years filename, by subtracting 1 from the integer of the current workbooks filename. So MB19 become MB18, where last years Income/Exp data resides.
The result could be saved in a cell and used in the formula for identifying last year's workbook, where the needed Income/Exp data is stored.
That would make it possible to automate the entire process.
Is that way too complicated? Is there a better option for accomplishing my goal?
Anyone interested in taking this on?
Here is my current workbook, cleared and ready for next year, but minus last years Income/Exp data needed for the Budget sheet.
https://app.box.com/s/tng7y5aybn345b2idvu80e8zhozatclb