Extract OLE Objects from Workbook

Extract OLE Objects from a Workbook

Creating a Template Workbook

  1. Created a workbook in Microsoft Excel.
  2. Add a Microsoft Word document, an Excel workbook and a PDF document as OLE objects on first worksheet.
Template document with OLE objects (OleFile.xls)
todo:image_alt_text

Next extract the OLE objects and save them to the hard disk with their respective file types.

Extract OLE Objects Using Aspose.Cells for Python Excel Library

The code below does the actual work of finding and extracting OLE objects. The OLE objects (DOC, XLS and PDF files) are saved to disk.