Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word OLE Formatting
Message
De
05/11/1998 15:09:24
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Word OLE Formatting
Divers
Thread ID:
00154984
Message ID:
00154984
Vues:
63
After inserting text at a bookmark, I would like to select that text and underline it in MSWord97.
I have no problem starting Word, finding the correct bookmark and inserting the text using code like below:

goWord=GETOBJECT(,"word.application")
lcdocstr=SPACE(1)
lcdocstr = "C:\my documents\newdoc.doc"
goword.documents.open(lcdocstr)
goword.activedocument.bookmarks("testmark").range.text= "Paul Montgomery"

I am having the devils own time finding the right VBA command and sytax to select the inserted text and underline it.

Any suggestions?

Paul Montgomery
I can't complain but sometimes I still do - Joe Walsh
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform