Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / September 2005

Tip: Looking for answers? Try searching our database.

Insert text into certain position in word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard - 26 Sep 2005 04:41 GMT
Hello:
I want to export some data from Ms project and insert these text into
special position ( Line and column ) . But i don't know how to navigate in
word. i mean i have no idea about how to mark the position where i want to
add new text.

please give me some good ideas on how to do it.
Thanks for your attention !
Doug Robbins - 26 Sep 2005 08:45 GMT
Insert a bookmark at the location where you want the data to appear and then
use the .Range property of the bookmark

ActiveDocument.Bookmarks("yourbookmark).Range.InsertBefore "your data"

If you have a space selected when you insert the bookmark, the data will be
inserted inside the bookmark and can then be referenced using a REF field if
necessary.

Alternatively, you can use a DOCVARIABLE field where you want the data to
appear and use

With ActiveDocument
   .Variables("yourvariablename").Value = "your data""
   .Range.Fields.Update
End With

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Hello:
> I want to export some data from Ms project and insert these text into
[quoted text clipped - 4 lines]
> please give me some good ideas on how to do it.
> Thanks for your attention !
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.