Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I populate a table in Powerpoint with data ?

Powerpoint

How Do I populate a table in Powerpoint with data ?

by  Chance1234  Posted    (Edited  )
Firstly name your table using the following code faq707-1698

lets call it frank (table two rows by three columns)

Now in your Code reference the slide with the table on it,

Code:
 Set sld_Temp = pp_Final.Slides(1) '

Then to reference the table and populate it , the code looks somethign like this

Code:
  	       With sld_Temp.Shapes("frank").Table
                    .Cell(1, 1).Shape.TextFrame.TextRange.Text = "Hello"
                    .Cell(1, 2).Shape.TextFrame.TextRange.Text = "world"
                    .Cell(1, 3).Shape.TextFrame.TextRange.Text = "And"
                    .Cell(2, 1).Shape.TextFrame.TextRange.Text = "here is"
                    .Cell(2, 2).Shape.TextFrame.TextRange.Text = "more"
                    .Cell(2, 3).Shape.TextFrame.TextRange.Text = "data"
               End With

Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top