Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping Excel quiet during Close()
Message
From
23/07/2007 16:13:54
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01242972
Message ID:
01242975
Views:
11
>>I try to save a xls to a dbf3-file by using OLE-automation. I don't want to disturb the user by messages. I use this code:
>>
>>
>>loexcel=createobject("excel.application")
>>loexcel.workbooks.open("M:\myxls.xls")
>>loexcel.ActiveWorkbook.SaveAs("M:\xx.dbf",8,,,,,1)
>>loexcel.ActiveWorkbook.Close()    && I get a message now: Wanna save your changes?
>>loexcel.quit
>>
>>
>>I don't want this message (btw: I answer 'no'). How can I suppress it?
>>
>>TIA,
>>
>>Lennert
>
>
>loexcel.ActiveWorkbook.Close(0)
>
Thank you very much, Borislav.
That was a very quick reply!

Lennert
Previous
Reply
Map
View

Click here to load this message in the networking platform