VBA-Text in a bodytext place holder

  • Thread starter Thread starter Edward
  • Start date Start date
E

Edward

Hi everybody,
I use a two column bodytext layout for a specific slide. it will be
populated with some entries (using VBA) , some entries maybe long and wraped
to the second line. How can I determine when I get to the end of a bodytext
placeholder in VBA?
I can't just simply count the number of entries because some maybe loag and
therefore wraped. I tried to use boundheight peroperty but it's not accuarte
when I change the line spaceing . Is there any beter way of doing this? The
whole idea is to find when I get to the end of first bodytext placeholder and
starting pupulating the second placeholder .
 
Thanks Steve. There was not much to write that's why I didn't write any code.
I just compared shape height with boundheight

If .Height > .TextFrame.TextRange.BoundHeight then
which as I mentioned in my first posting didn't work correctly , but your
code with additional comparision of .top works fine.
Thanks again.
 
Back
Top