How to Rename Modules?

robertrobert905

Board Regular
Joined
Jun 27, 2008
Messages
139
In VBA all the modules are just called Module1, Module2 etc. If I'm organizing my code into 10 different Modules then it would be hard for me to keep track of where everything is. How do I rename the modules?
 

Some videos you may like

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
In the Properties window replace Module1 with your desired name.
 

xld

Banned
Joined
Feb 8, 2003
Messages
5,378
Open the Properties window, F4

Select the module and change the Name property in the Properties window
 

robertrobert905

Board Regular
Joined
Jun 27, 2008
Messages
139
thanks everyone, now my code is very organized and i don't have to keep scrolling to find my code anymore
 

Watch MrExcel Video

Forum statistics

Threads
1,127,622
Messages
5,625,932
Members
416,143
Latest member
JoyceMB

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top