Rename Modules

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am working on a VBA project adding Modules and UserForms, but I can't seem
to rename either of these. I have seen samples which have different, more
meaningful names. There doesn't seem to be a simple right-click option,
please help. Also, does anyone know how to activate the mouse wheel to scroll
up and down in the code window? Being so used to using it everywhere else it
is frustrating not to be able to use it in this instance.

Thanks for your help,
 
ian,
open your properties window. (where you edit userform controls information)
and then select a module. There is only one option to edit on a module- The
name
ben
 
when the module or form is selected, look in the properties window. You can
rename it there.
 
Using VBA, in a mcro, or in the immediate window

ThisWorkbook.VBProject.VBComponents("Module1").CodeModule.Name = "mTest"

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Chip,

Much thanks for that link to freewheel, not being able to scroll in VBA was
driving me batty.
ben
 
Thanks to all, problem solved.


Bob Phillips said:
Using VBA, in a mcro, or in the immediate window

ThisWorkbook.VBProject.VBComponents("Module1").CodeModule.Name = "mTest"

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top