Macro to insert text or document into active document 
Author Message
 Macro to insert text or document into active document

I am looking for help on learning a macro that will allow me to insert a document
(or text) into the active document.  Do you know where I can go for tutorial or
example?

Thanks!
Steu



Sat, 06 Dec 2003 09:30:44 GMT  
 Macro to insert text or document into active document
Hi Steu,

If you add a bookmark to your document, you can use a command like:
    ActiveDocument.Bookmarks("NameOfBookmark").Range.Text = "My new line"

If you want to write at the cursorposition, use:
    Selection.Range.Text = "My new line"

For many examples check the macro FAQ's at www.mvps.org/word

Hope this helps,
regards,
Astrid

So that all can benefit from the discussion, please post all follow-ups to
the newsgroup.
Visit the MVP Word FAQ site at http://www.mvps.org/word/



I am looking for help on learning a macro that will allow me to insert a
document
(or text) into the active document.  Do you know where I can go for tutorial
or
example?

Thanks!
Steu



Sat, 06 Dec 2003 16:46:09 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Inserting text in document with macro

2. Insert a document into another document with a Form at startup

3. VBA code to print all icon-inserted documents within a document

4. Macro enabling us to insert multiple files into a single word document

5. Adding text to not active word document

6. Text changed in active document

7. Saving page breaks from Word documents to text documents

8. populating document properties from text in document

9. finding text in a document and split document

10. Concerting word document to text document

11. Inserting Text into Protected Documents

12. inserting text on 600 documents

 

 
Powered by phpBB® Forum Software