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