Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / April 2008

Tip: Looking for answers? Try searching our database.

set textbox autoresize text setting via VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MeSteve - 02 Apr 2008 20:26 GMT
Is there a way to set the autosize text = true using VBA in PPT 2007?
vindys - 02 Apr 2008 20:52 GMT
ActiveWindow.Selection.ShapeRange(1).TextFrame.AutoSize = 1

> Is there a way to set the autosize text = true using VBA in PPT 2007?
MeSteve - 02 Apr 2008 21:23 GMT
That will autosize the textbox right? not the text within the box?  I want to
resize the text to fit the box not the box to fit the text.

> ActiveWindow.Selection.ShapeRange(1).TextFrame.AutoSize = 1
>
> > Is there a way to set the autosize text = true using VBA in PPT 2007?
John Wilson - 02 Apr 2008 22:35 GMT
You will need to use the new TextFrame2 property
.TextFrame2.AutoSize = msoAutoSizeTextToFitShape
Signature

Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk

> That will autosize the textbox right? not the text within the box?  I want to
> resize the text to fit the box not the box to fit the text.
>
> > ActiveWindow.Selection.ShapeRange(1).TextFrame.AutoSize = 1
> >
> > > Is there a way to set the autosize text = true using VBA in PPT 2007?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.