ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Saving an Embedded Excel Sheet in OLE Control (https://www.excelbanter.com/excel-programming/312030-saving-embedded-excel-sheet-ole-control.html)

Prabhakar

Saving an Embedded Excel Sheet in OLE Control
 
Hi,
I have an Excel Sheet that gets embedded within an OLE Control on my
VB Form.The Sheet gets displayed perfectly but i am unable to save changes
to the sheet back to the same file.
Here is the piece of code that embeds the excel sheet on the VB Form :
OLE1.Class = "Excel.Sheet.8"
OLE1.Action = OLE_CREATE_EMBED
OLE1.CreateEmbed ("C:\PivotTableReports\SalesAnalysis.xls")

The embeded Worksheet contains a PivotTable
Any thoughts on this.


thanks
prabhakar




All times are GMT +1. The time now is 07:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com