Message 1 of 7
Embedded Excel Spreadsheet (Open, Save, and Close) (iLogic)

Not applicable
04-30-2013
02:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I guess I’m not bright enough to figure this one out. I would appreciate any help that you might be able to give. I have some code (below) that will open my embedded excel spread sheet and it works great. Now I need the code to save and close the excel file after it’s been open.
The embedded excel spreadsheet pushes some stuff the model and does a couple other thing. So all I really need is for the excel file to open, save, and close when the rule is run.
Imports Inventor.OLEDocumentTypeEnum ExcelApp = CreateObject("Excel.Application") Dim ExcelFile As ReferencedOLEFileDescriptor ExcelFile = ThisDoc.Document.ReferencedOLEFileDescriptors.Item(1) ExcelFile.Activate(kEditOpenOLEVerb, ExcelApp)