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

Re: renaming class or module in a project window in VB by Andi

Andi
Tue Jan 11 13:12:52 CST 2005

On Tue, 11 Jan 2005 11:03:03 -0800, "Alex"
<Alex@discussions.microsoft.com> wrote:

>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
---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW

Re: renaming class or module in a project window in VB by Jean-Guy

Jean-Guy
Tue Jan 11 13:54:08 CST 2005

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
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org