Hi all together,
Have I to worry about two (or more) modules that are called the same?
Because I always have to use the given names like "Module1", "Module2",
etc. and therefore it could happens that two (or more) documents are
opend where both includes a "Module1"-Module.
Or is there (2nd) a possibility renaming a module?
Regards,
Nachtigall
Jay Freedman - 29 Aug 2005 01:39 GMT
>Hi all together,
>
[quoted text clipped - 7 lines]
>Regards,
>Nachtigall
Select the module in the Project pane of the VBA editor. Display the
Properties pane (keyboard shortcut is F4). You can change the module's
name there. It's a good idea to rename every module to something
descriptive.
OTOH, it's a Really Bad Idea (tm) to have modules in documents unless
it can't be avoided. Put the modules in templates, either global
templates or ones used to base new documents (see
http://www.word.mvps.org/FAQs/Customization/WhatTemplatesStore.htm).
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
pleasesendspamtothisadress@gmx.net - 29 Aug 2005 06:15 GMT
Can there occur an error because of two Modules called the same?
Nachtigall
Jonathan West - 29 Aug 2005 15:10 GMT
> Can there occur an error because of two Modules called the same?
Yes. Within a single document or template, all the modules must have unique
names.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org