I need a some help extracting excel embedded objects from documents. The resulting .xls files are blank. Word docs and powerpoints extract correctly. These files and documents are old; created 10 years ago. Below is the extracting segment of my code. Thx, David.
If doc.HasEmbedded Then
If Isarray(doc.EmbeddedObjects) Then
i=1
Forall o In doc.EmbeddedObjects
Select Case o.Class
Case "Word.Document.8", "Excel.Sheet.8", "PowerPoint.Show.8"
Set handle=o.activate(False)
Call handle.SaveAs ("C:\export\" + getFileName(doc) + "_EmbeddedObject_" & Cstr(i) & getExt(o.Class))
i=i+1
End Select
End Forall
End If
End If