VBA-Underlined text

E

Edward

Hi everybody,
I have the following code
ActivePresentation.Slides(sldNum).Shapes(2).TextFrame.TextRange.InsertAfter
= Chr(9) + Chr(9) + "test" + vbCr

how can I have "test" be underlined?
 
E

Edward

Thanks Steve as always
--
Best regards,
Edward


Steve Rindsberg said:
Hi Edward,

Change it to something like this:

With ActivePresentation.Slides(1).Shapes(2).TextFrame.TextRange
.InsertAfter = Chr(9) + Chr(9) + "test" + vbCr
.Characters(InStr(.Text, "test"), Len("test")).Font.Underline = msoTrue
End With



==============================
PPT Frequently Asked Questions
http://www.pptfaq.com/

PPTools add-ins for PowerPoint
http://www.pptools.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top