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
[email protected]
Word MVP site: http://www.word.mvps.org
 
Top