msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Underlining Text in a Word Document

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE Automation
Author Message
mihir.kotwal



Joined: 04 Oct 2007
Posts: 1

PostPosted: Fri Nov 24, 2006 7:36 pm    Post subject: Underlining Text in a Word Document Reply with quote

Code:
oWord.ActiveDocument.Range.InsertAfter(defword)
oWord.ActiveDocument.Range.InsertAfter(" -" &
defdef & vbNewLine)

How can I get the defword to be underlined while leaving the rest
without an underline?
Thanks in advance.
-Mihir

P.S.: I originally posted this in
microsoft.public.dotnet.framework.interop, where someone suggested I
post here.

Archived from group: microsoft>public>vb>ole>automation
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group