Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Goto Bookmark in Word document
Message
 
À
07/05/2003 20:56:12
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00786077
Message ID:
00786127
Vues:
30
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform