Using HTML markup in a Powerpoint text frame/shape

M

mstuehler

All,

I'm working on a project that creates dynamic Powerpoint presentations
(using vba or vbscript)

I start with a Powerpoint "template" that has a number of text shapes - I
can programatically add/modify the text in these shapes in vba.

However, I'd like to know if it's possible to use HTML markup like this:

oSlide.Shapes("someShape").TextFrame.TextRange.Text = "This is some
<b>bold</b> text"

I'd like to be able to use bold, italics, superscripts, and bullet lists, if
possible.

If this is not possible using HTML, is there some other way to create
dynamic text with some Rich-text formatting?

I know that it's possible to format individiual characters thus:

oSlide.Shapes("someText").TextFrame.TextRange.Characters(x, y)...

But I'll be receiving text from a database that includes the markup, and I'd
like to just be able to put it in the text frames without formatting it
character by character.

Any help or insights would be much appreciated!

Cheers to all!

Matt Stuehler
 
S

Steve Rindsberg

However, I'd like to know if it's possible to use HTML markup like this:
oSlide.Shapes("someShape").TextFrame.TextRange.Text = "This is some
<b>bold</b> text"

No, afraid not.

On the other hand, since PowerPoint 2000 and up will try to open HTML files as
though they were slides, you might try writing the html content to an HTML file
then opening it (or using Insert, Slides, From Files programmatically) to see
if it handles the HTML reasonably well.
 

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