Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-06-2010, 11:21 AM
icu222much icu222much is offline Resize-to-fit Table Columns (PowerPoint) Windows XP Resize-to-fit Table Columns (PowerPoint) Office 2003
Novice
Resize-to-fit Table Columns (PowerPoint)
 
Join Date: Nov 2009
Posts: 3
icu222much is on a distinguished road
Default Resize-to-fit Table Columns (PowerPoint)

I have a table in PowerPoint with several rows and columns of data. I would like to resize selected columns so the width of the column does not exceed the width of the longest data - in otherwords make the column width the perfect fit. I am wondering how I would go abouts in doing this?

Below are my various attempts but they have failed as when I went to run my macro, the column widths did not change.



Code:
mySlide.Shapes(mySlide.Shapes.Count).Table.Cell(x, y).Shape.TextFrame.WordWrap = msoFalse
mySlide.Shapes(mySlide.Shapes.Count).Table.Cell(x, y).Shape.TextFrame.AutoSize = ppAutoSizeShapeToFitText
Code:
mySlide.Shapes(mySlide.Shapes.Count).Table.Columns(x).Width = ppAutoSizeShapeToFitText
Code:
mySlide.Shapes(mySlide.Shapes.Count).Table.Cell(targetRow, targetColumn).Shape.TextFrame.AutoSize = ppAutoSizeShapeToFitText
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize-to-fit Table Columns (PowerPoint) How to compare 2 columns with other two columns in EXECL 2007? Learner7 Excel 5 06-12-2010 09:54 AM
Resize Email pictures in Outlook - Office 2007? jonesnewton Outlook 0 05-16-2010 04:11 AM
Resize-to-fit Table Columns (PowerPoint) Table of contents, remove spacing and put in 2 columns - need help urgently! nam085 Word 1 03-04-2010 08:00 AM
equation automatic resize Landsman Word 0 02-24-2009 09:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:14 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft