ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change Macro names (https://www.excelbanter.com/excel-programming/360459-change-macro-names.html)

[email protected]

Change Macro names
 
I've been searching for a while for a way to control how the macro name
appears in the macro selection window. I understand that it must show
the name of the workbook it is associated to when there are multiple
open, but when there is only one, what can I do to JUST get the names
of the Subs in the selection box? What controls whether or not the
name of the module appears as a prefix for the macro?

For example, instead of this:
-----------------------
Book1.xls!Module1.Macro1
Book1.xls!Macro2
Macro3


I want this:
-----------------------
Macro1
Macro2
Macro3


Norman Jones

Change Macro names
 
Hi Robb,

The module prefix is shown if Excel needs to distinguish between identically
named macros in different modules.


---
Regards,
Norman



wrote in message
ups.com...
I've been searching for a while for a way to control how the macro name
appears in the macro selection window. I understand that it must show
the name of the workbook it is associated to when there are multiple
open, but when there is only one, what can I do to JUST get the names
of the Subs in the selection box? What controls whether or not the
name of the module appears as a prefix for the macro?

For example, instead of this:
-----------------------
Book1.xls!Module1.Macro1
Book1.xls!Macro2
Macro3


I want this:
-----------------------
Macro1
Macro2
Macro3





All times are GMT +1. The time now is 07:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com