Read Data from Powerpoint Table

E

Edward

You can use something like :

Sub readTableCells()
Dim tbl As Table
'assuming table is selected
Set tbl = ActiveWindow.Selection.ShapeRange(1).Table
For i = 1 To tbl.Rows.Count
For j = 1 To tbl.Columns.Count
'output data , you can change this line and use the cell data
' anywhere in your code
Debug.Print tbl.Cell(i, j).Shape.TextFrame.TextRange.Text
Next
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top