Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word OLE Formatting
Message
From
05/11/1998 15:09:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Word OLE Formatting
Miscellaneous
Thread ID:
00154984
Message ID:
00154984
Views:
65
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
Next
Reply
Map
View

Click here to load this message in the networking platform