iLogic GoExcel.Save

iLogic GoExcel.Save

Anonymous
Not applicable
826 Views
1 Reply
Message 1 of 2

iLogic GoExcel.Save

Anonymous
Not applicable

Hi All,

 

Could you tell me the way for "saving as" an excel file and creating a new copy from Ilogid rule, please?.

 

I see that exists the order "GoExcel.Save", but not "GoExcel.SaveAS".

 

Thanks in advance.

0 Likes
827 Views
1 Reply
Reply (1)
Message 2 of 2

MechMachineMan
Advisor
Advisor

Hi. Use a combination of this call with the resources found by googling "excel + vba + msdn" and you should be able to get there.

 

 

oExcelApp = GoExcel.Application
oExcelWB = oExcelApp.Workbooks.Open("c:\file name.xlsx")
'or oExcelWB = oExcelApp.ActiveWorkbook

'Below only needed if you want to do worksheet things. 'oExcelWS = oExcelWB.Worksheets("Sheet Name")

oExcelWB.Save...

 

https://msdn.microsoft.com/en-us/vba/excel-vba/articles/workbook-saveas-method-excel

 


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes