I'm currently working on a code using VBA that will automatically import the text located in tables in Powerpoint slides to Excel either as text or as a table.
The Slides looks like this:
*** Updated Code as per TechnoDabbler assistance
Public Sub CopySlideShapesText()
' Update the PowerPoint file name
Const cPowerPointName = "test.pptx"
Dim vPowerPoint As PowerPoint.Application
Dim vPresentation As PowerPoint.Presentation
Dim vSlide As PowerPoint.Slide
Dim vPowerpointShape As PowerPoint.Shape
Dim vSheet As Worksheet
Dim vRowCounter As Long
' Open the powerpoint presentation
Set vPowerPoint = New PowerPoint.Application
Set vPresentation = vPowerPoint.Presentations.Open(cPowerPointName)
' Write the slide info onto the active excel sheet
Set vSheet = ActiveSheet
' Loop through each of the slides
vRowCounter = 1
For Each vSlide In vPresentation.Slides
' Loop through each shape on the slide
For Each vPowerpointShape In vSlide.Shapes
' If shape isn't a table ... copy the text
If Not vPowerpointShape.HasTable Then
vPowerpointShape.Copy
vSheet.Range("A" & vRowCounter) = vPowerpointShape.TextFrame2.TextRange.Text
vRowCounter = vRowCounter + 1
Else
vPowerpointShape.Copy
vSheet.Range("A" & vRowCounter).Select
vSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:=False
vRowCounter = vRowCounter + vPowerpointShape.Table.Rows.Count
End If
Next
Next
vPresentation.Close
vPowerPoint.Quit
End Sub
UPDATE
Error showing