Forum Discussion

maxthomassin's avatar
maxthomassin
Occasional Contributor
13 years ago

Saving Excel File

Hello everyone,



im trying to work with Excel file using OleObject. I found everything I need to work with it except one thing. I havent figured out how to save a file that already exist. 



I tried using Close, SaveAs or Save, but each time I try, i have the pop up message :



are you sure you want to save (yes, no, cancel).



Can anyone give me an idea how to bypass this message box ?



Thanks.



(im using excel 2010 and JavaScript)



 "MsExcel.ActiveWorkbook.Save(FileName);"











1 Reply