Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default importing powerpoint table to excel

how do i go about importing a table in powerpoint to excel?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default importing powerpoint table to excel

I saw thgis posting on Saturday morning but had the macro stored on a
different computer. Here is the code. The code goes through each sheet in
the power point file and gets each table. The tables are within shapes
objects on each power point sheet.

Sub GetSlides()

FName = "c:\temp\test.ppt"
Set obj = GetObject(FName)
obj.Application.Visible = True

Set ExcelSht = ThisWorkbook.Sheets(1)
NewRow = 1

For Each slide In obj.Slides
With slide.Shapes
For i = 1 To .Count
If .Item(i).HasTable Then
Set MyTable = .Item(i).Table
For Each MyRow In MyTable.Rows
Col = 1
For Each MyCol In MyRow.Cells
With ExcelSht
Set DataCell = MyCol.Shape.TextFrame.TextRange
.Cells(NewRow, Col) = DataCell.Text
Col = Col + 1
End With
Next MyCol
NewRow = NewRow + 1
Next MyRow
End If
Next
End With
Next slide

obj.Close
Set obj = Nothing
End Sub



"Lynn" wrote:

how do i go about importing a table in powerpoint to excel?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what's the best way to convert a table in Excel to Powerpoint or WORDthen PDF? LunaMoon Excel Discussion (Misc queries) 3 August 25th 08 11:01 PM
what's the best way to convert a table in Excel to Powerpoint or WORDthen PDF? LunaMoon Excel Programming 3 August 25th 08 11:01 PM
Copy from Excel to a table in Powerpoint Sadia[_2_] Excel Programming 2 October 21st 05 07:40 PM
When Copying Excel Table to Powerpoint Alicia Excel Discussion (Misc queries) 1 March 30th 05 01:44 PM
Importing Excel Object in Powerpoint technically challanged Excel Discussion (Misc queries) 0 January 31st 05 09:25 PM


All times are GMT +1. The time now is 10:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"