Hello,
I wrote a macro to pull a large dataset from excel and put it in multiple powerpoint slides....everything works great but the text "pDesc" is often too large for the shape I created in the piece of code below. I have to keep the shape the same size so I have to think of a way to auto-fit the font size into the shape. Any suggestions? I've tried using the LENstring function to do a character count and shrink it that way but it is difficult because the text has many spaces and indents ect.
activeslide.Shapes.AddShape(msoShapeRectangle, 590, 0, 370, 120).TextFrame.TextRange.Text = pDesc
Thank you!!
I wrote a macro to pull a large dataset from excel and put it in multiple powerpoint slides....everything works great but the text "pDesc" is often too large for the shape I created in the piece of code below. I have to keep the shape the same size so I have to think of a way to auto-fit the font size into the shape. Any suggestions? I've tried using the LENstring function to do a character count and shrink it that way but it is difficult because the text has many spaces and indents ect.
activeslide.Shapes.AddShape(msoShapeRectangle, 590, 0, 370, 120).TextFrame.TextRange.Text = pDesc
Thank you!!