Changing macros from a macro

J

James Byrne

I have customized normal.dots for all of my users. All of them have the
same macros within the normals.

The macros are:

Sub MemoDoc()
Documents.Add Template:="h:\templates\forms\Memo.dot", _
NewTemplate:=False, DocumentType:=0
End Sub
Sub FaxDoc()
Documents.Add Template:="H:\templates\forms\Fax.dot", _
NewTemplate:=False, DocumentType:=0
End Sub


I would like to change the text in both macros from "H:\Templates\Forms\..."
to "J:\department\word\winword\macro\...."

Can I do this via a macro or is there some other way to automate this?

My goal is to make a document with an autorun macro open upon login so that
the macros in their normal.dots change without user intervention. Is this
possible? If so, what do I need to do?

Thanks
Jim
 
D

Doug Robbins - Word MVP

You should not rely on the use of the normal.dot template for this purpose.
I think it would have been better if Microsoft had named it Personal.Dot.

While I can't see much point in the macros at all, they should have been
included in a template that you place in the Word Startup directory.

See the article “Distributing macros to other users” at:

http://word.mvps.org/FAQs/MacrosVBA/DistributeMacros.htm


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
W

Word Heretic

G'day "James Byrne" <[email protected]>,

Document Properties, Document Variables, Registry Entries, external
config file, bookmarked text in the template content... dozens of ways
:)



Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


James Byrne reckoned:
 

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