renaming class or module in a project window in VB

A

Alex

How to rename a class or module in a project window in VB?
The Module1 to something name and the Class1 to something name?

Thanks
 
A

Andi Mayer

How to rename a class or module in a project window in VB?
The Module1 to something name and the Class1 to something name?

Thanks

Press F4 and change the name in the project window
 
M

Malcolm Smith

Look in the Property window of the class or module and you will see the
first element (they are in alphabetical order) is the _Name of the class
or module.

All you have to do is to edit that.

- Malc
www.dragondrop.com
 
J

Jean-Guy Marcil

Alex was telling us:
Alex nous racontait que :
How to rename a class or module in a project window in VB?
The Module1 to something name and the Class1 to something name?

If you mean to do it by code, play around with something like:

ActiveDocument.VBProject.VBComponents("Module1").Name = "NewModule"

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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

Top