Re: programmatically insert lots of text into a power point presentation.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Scott Jacobsen (scott.jacobsen_at_comcast.net)
Date: 06/25/04


Date: 25 Jun 2004 15:53:21 -0700


"Bill Dilworth" <vestprog2@yahoo.org> wrote in message news:<OIanxolWEHA.2972@TK2MSFTNGP12.phx.gbl>...

> Do you really need to have the program calculate the actual size of the
> output, or could you instead tell it to span to the next slide after x
> number of pre-formatted lines? If you are importing the text into a known
> slide format, then you only need to know that beyond a certain point, you
> will need to continue on the next slide.
The input text is a bunch of one or two sentence long phrases. There
are lots of these phrases, and no way to know what they are in
advance. So it will take more than one slide to display them.

I suppose I can figure out how many physical lines of text will fit on
one slide for a given font just by opening up PP and typing in lines.
That's easy enough.

But one input phrase doesn't == one line of text, because it might
word wrap. I could count the number of characters that fit on one
physical line. Then I could assume a phrase will wrap at the last
whitespace character <= the max number of chars per line.

But I'm hoping there is some way for pp to do this for me, or at least
just tell me how many lines are in a text box.

> Are you using this in a presentation? or are you using this to publish
It is a requirement of an existing application. I'm just the grunt
coder who has to do it :)

> Post back if you still need the macro to break the over-sized textboxes onto
> multiple slides based on the number of lines in the textbox.
That macro would be great.

Thanks

-- 
Scott


Relevant Pages

  • Auto-populating textboxes with random text phrases from a list
    ... Is there a way to programmatically populate textboxes or autoshapes ... of every slide in a presentation ... with one-liner text phrases taken at random from a list of phrases ... The random one-liners on each slide are intended ...
    (microsoft.public.powerpoint)
  • Re: Strange VBA Button issue
    ... The word wrap seems to work a bit differently in design mode and slide show ... In design mode a single word wraps around but in slide show mode, ...
    (microsoft.public.powerpoint)
  • Using Control Toolbox
    ... preferably in bullets or at least in a list. ... toolbox and set up a textbox on a slide to be filled in with a font of my ... but they have to at least word wrap. ...
    (microsoft.public.powerpoint)