“Macro could not be found . . . “. I have created a large program (161 procedures) in VBA for a friend now running Excel 2010 in Windows 7 op sys. To make calling of Key routines simple, I adapted (shamelessly copied) Ron de Bruin’s how to create a popup menu (http://www.rondebruin.nl/popup.htm). Program works. I copied the original workbook, renamed it as WBookB and sent it to my friend (in another organization) only to find that the macros did not run because they had the path and file name of my original spreadsheet associated with it (“C:\Users\Sprinter\Documents\WBookA.xlsm could not be found . . . “). This happened even with the identical module and Personal.xlsm linked to the new spreadsheet. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>
So, it appears that the path and file name containing the original macro are stored somewhere in WBookB but pointing WBookA. Questions then are: 1) Where is that path and file name stored? 2) Can it be accessed and the old path and name changed for a new path and name? <o
></o
>
I have looked for the path and name in the CustomUI Editor, and have tried unzipping the WBookB. The program worked in Excel 97 and 2007 but with Windows 7 and Excel 2010 too much has changed. I can do a work around by creating macros through the Developer tab, but there is a lot of typing and it still doesn’t tell me what’s going on. Four days and endless combinations of searches on Google and Bing have not gotten me closer. I have purchased MrExcel’s book VBA and Macros but was not able to find answers to my questions. Using Application.run “C:\Users\Sprinter\Documents\WBookA.xlsm” works on my machine because path is valid but not on remote machine. I would appreciate any insights or pointers as to what is going on and how to fix it. Thanks <o
></o
>




So, it appears that the path and file name containing the original macro are stored somewhere in WBookB but pointing WBookA. Questions then are: 1) Where is that path and file name stored? 2) Can it be accessed and the old path and name changed for a new path and name? <o


I have looked for the path and name in the CustomUI Editor, and have tried unzipping the WBookB. The program worked in Excel 97 and 2007 but with Windows 7 and Excel 2010 too much has changed. I can do a work around by creating macros through the Developer tab, but there is a lot of typing and it still doesn’t tell me what’s going on. Four days and endless combinations of searches on Google and Bing have not gotten me closer. I have purchased MrExcel’s book VBA and Macros but was not able to find answers to my questions. Using Application.run “C:\Users\Sprinter\Documents\WBookA.xlsm” works on my machine because path is valid but not on remote machine. I would appreciate any insights or pointers as to what is going on and how to fix it. Thanks <o

