Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping Excel quiet during Close()
Message
From
23/07/2007 16:09:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Keeping Excel quiet during Close()
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01242972
Message ID:
01242972
Views:
77
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
Next
Reply
Map
View

Click here to load this message in the networking platform