ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Renaming VBA module (https://www.excelbanter.com/excel-programming/275189-renaming-vba-module.html)

Avner Mediouni

Renaming VBA module
 
Can someone tell me how to rename a VBA module?

Thanks
Avner Mediouni
R&D Physicist
email:



Virginia Morris

Renaming VBA module
 
If you open the module in Edit mode, the left-hand part of the window will
list the open projects. If you click on the module that you want to rename
(for example, Module 2), you will see the line (Name) Module 2 in the
property window below. Just click on the name that you wish to change &
type in the new name. Pressing "Enter" or clicking somewhere else will
change the name of the module.

"Avner Mediouni" wrote in message
...
Can someone tell me how to rename a VBA module?

Thanks
Avner Mediouni
R&D Physicist
email:





jason

Renaming VBA module
 
How many ways to skin a cat!
Whilsy in the VB Editor I press F4 and the properties window appears
(if it wasn't already visible) next to "(Name)" I just overwrite the
default name (e.g module 1) usually I'll leave a prefix of 'mod' when
naming a module.

Jason

"Virginia Morris" wrote in message ...
If you open the module in Edit mode, the left-hand part of the window will
list the open projects. If you click on the module that you want to rename
(for example, Module 2), you will see the line (Name) Module 2 in the
property window below. Just click on the name that you wish to change &
type in the new name. Pressing "Enter" or clicking somewhere else will
change the name of the module.

"Avner Mediouni" wrote in message
...
Can someone tell me how to rename a VBA module?

Thanks
Avner Mediouni
R&D Physicist
email:




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

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