adding text to a object

B

barry

Would like to add a text string to the ThisDocument
Document_Open() procedure in a number of word documents
that have already been created. Would do this from a main
word document looping through the other docs. Need a start
on how to get the vba to recognize the procedure
Document_Open

thanks
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

See the article “Find & ReplaceAll on a batch of documents in the same
folder” at:

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

That should be able to be modified to do what you want. The code to insert
the string would be in the modified macro, not the Document_Open() event.


--
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
 
B

barry

I need to insert one line of code into the Document_Open()
event and it currenly does not have anything in it. Could
you please explain further how the modified macro would
come into play. Also how (if possible) do you get the
replace dialog box to recognize the blank string to be
replaced.

thanks
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Barry,

Please clarify whether you want to line of code to be inserted into the
Document_Open() procedure or to be inserted into the document BY the
Document_Open() procedure.

--
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
 

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