jbrown2339
Technical User
I've got a series of reports in Excel, that I feed a bunch of data into, and give to the end users. Basically, I have a file called "Trend Report - Template.xls", and as I feed data into it from each of our markets, I save under different names, i.e. Dallas Trend Report.xls, Houston Trend Report.xls, etc.
To make navigation in this spreadsheet easier for the end user, I created some simple buttons where they could hit it, and be taken to a specific sheet. I recorded each macro, and selected to store the macro in "This Workbook". When I do that, it's fine. Once I change the name of the spreadsheet, then the macros' no longer work. For instance, if I changed the name of the spreadsheet to 'a.xls', then I get an error, as it says it can't find the 'Trend Report Template.xls' spreadsheet, even though the macro only specifies a worksheet name, and not the full name of the actual excel file.
Any idea why the macro's are still looking back to the original file, vs only looking internally in the file I have open? Since I am creating these on my hard drive, and exporting to various users across the country, their reports won't be able to look back to my original template file on my C drive.
To make navigation in this spreadsheet easier for the end user, I created some simple buttons where they could hit it, and be taken to a specific sheet. I recorded each macro, and selected to store the macro in "This Workbook". When I do that, it's fine. Once I change the name of the spreadsheet, then the macros' no longer work. For instance, if I changed the name of the spreadsheet to 'a.xls', then I get an error, as it says it can't find the 'Trend Report Template.xls' spreadsheet, even though the macro only specifies a worksheet name, and not the full name of the actual excel file.
Any idea why the macro's are still looking back to the original file, vs only looking internally in the file I have open? Since I am creating these on my hard drive, and exporting to various users across the country, their reports won't be able to look back to my original template file on my C drive.