OK I guess this is Part 3 of a larger issue that I was asking about here: Excel VBA opening old file
I'm building a template with a bunch of vlookups and some automation that a whole team of people is going to use record problems with datasets. It would have taken me 10 minutes in Access but no can do in this environment so my Excel template has been evolving with a bunch of workarounds - importing raw data from several other Excel files and redirecting the user to a checklist page that shows the info in a simpler way.
The issue I was having for the past couple days is Excel thinking I'm looking for procedures and/or macros in previous versions of the same file. I have been working on this template for months and I didn't encounter this problem at all until I made some buttons on a custom toolbar so people will be able to run macros and procedures just by clicking a button.
It seems like a strange property of Excel that if I change the name of the file and re-save it (again, it's a template that will be distributed to people all over), the toolbar buttons I created are associated with the macro and/or vb procedure in the previous file. I found some documentation about this, and a way to fix it here: Macro button under customized ribbon tab tries to open old Excel file
but this is crazy, no? I can't be exporting the custom ribbon, removing references to files and reimporting it every time I rename/move/copy the file in question. How do I create buttons in a workbook that will work in that workbook no matter what it's called or where it is?
Thank you all in advance!