Hello all you expert experienced and helpful users!
I am trying to use the Application.run statement to call a macro (MaterialReportWE) within the same workbook and it is not running. I can't see any spelling errors but when I open the Macro dialog box it shows the macro with the workbook name and the module name appended in front of it. It works fine when this is not the case (as with the "MaterialReport" macro). Some of the macros have this additional info and some don't. Why is that and how can I get rid of it or program code to accommodate it? I have checked thru all of the Macros in this file and there do not seem to be any duplicates that might require the additional names.
This is my statement: Application.run "MaterialReportWE"
In another macro I us Application.run "MaterialReport", which works fine.
The macro dialog box shows
'My File.xlsm'!MaterialReportWE.MaterialReportWE and
MaterialReport
Just having had an inspirational thought -- does VBA look at the first x number of chaaracters in the name and if they are the same it appends the additional modifiers? This may be the problem as I changed the name from MaterialReportWE to MatlReportWE and it lost the extra names. If so, does anybody know what the limit is?
Thanks for your attention!
I am trying to use the Application.run statement to call a macro (MaterialReportWE) within the same workbook and it is not running. I can't see any spelling errors but when I open the Macro dialog box it shows the macro with the workbook name and the module name appended in front of it. It works fine when this is not the case (as with the "MaterialReport" macro). Some of the macros have this additional info and some don't. Why is that and how can I get rid of it or program code to accommodate it? I have checked thru all of the Macros in this file and there do not seem to be any duplicates that might require the additional names.
This is my statement: Application.run "MaterialReportWE"
In another macro I us Application.run "MaterialReport", which works fine.
The macro dialog box shows
'My File.xlsm'!MaterialReportWE.MaterialReportWE and
MaterialReport
Just having had an inspirational thought -- does VBA look at the first x number of chaaracters in the name and if they are the same it appends the additional modifiers? This may be the problem as I changed the name from MaterialReportWE to MatlReportWE and it lost the extra names. If so, does anybody know what the limit is?
Thanks for your attention!