Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dismissing/ Bypassing the Excel Save prompt

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
484 Views, 3 Replies

Dismissing/ Bypassing the Excel Save prompt

Hello,

 

My question is when I use GoExcel.CellValue (or other similar Excel link) snippet in iLoggic to write on a Excel sheet, I get a save prompt for the respective Excel file.

 

i.e.

 

GoExcel.CellValue ("WB1.xls", "Sheet1", "A1") = 1234

 

(Run Rule)

 

(I get a message box saying)

 

"Do you want to save the changes you made to "WB1.xls?"

Yes / No / Cancel

 

 How can i bypass this message, I would prefer it is can be done through the iLogic Rule?

 

 Thanks

 

WajihHassan

 

 

3 REPLIES 3
Message 2 of 4
mrattray
in reply to: Anonymous

If you put an auto save on close sub into the excel sheet then you wont have this problem.

Mike (not Matt) Rattray

Message 3 of 4
Anonymous
in reply to: mrattray

Thanks Mike.

 .

 

I am not sure how to put an AutoSave?

 

I have a GoExcel.Save snippet.

 

But what should I do in case of more than one Excel file,

Also, I do not want to save one of them (as it contains some predefined formulas)

 

 

Message 4 of 4
Curtis_Waguespack
in reply to: Anonymous

Hi WHassan,

 

I think you can use this:

 

excelApp.DisplayAlerts = false

 

There is an example of it in use here:

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/How-to-create-a-excel-file-using-ilogi...

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report