Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Goto Bookmark in Word document
Message
 
To
07/05/2003 20:56:12
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00786077
Message ID:
00786127
Views:
31
Oscar,

I do something very similar with several documents. Here's how I do it...

WITH oWord.ActiveDocument
IF .Bookmarks.Exists(lcMercador) = .T.
.BookMarks(lcMercador).SELECT
*-- do something with the bookmark
ENDIF
ENDWITH

*Options depending on what you want to do:
*-- Delete using
oWord.ActiveDocument.Selection.Delete
*-- Overwrite it using
oWord.ActiveDocument.Selection.TypeText(lcReplacementText)


HTH,
Dan Zsiga
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform