Re: saveas without prompt
- From: john3 <jgarmon.work@xxxxxxxxx>
- Date: Wed, 17 Sep 2008 12:44:44 -0700 (PDT)
On Sep 17, 7:15 am, "Olaf Doschke"
<b2xhZi5kb3NjaGtlQHNldG1pY3Mu...@xxxxxxxxxxxxx> wrote:
#DEFINE xlLocalSessionChanges 2
oExcel.DisplayAlerts = .F.
oExcel.ActiveWorkbook.SaveAs("Filename.xls",,,,,,,xlLocalSessionChanges)
I'm not sure if you can skip all other paramters this way,
but DisplayAlerts is more important, xlLocalSessionChanges
may only be important if you opened a file, worked on
it and save() changes (not saveAS). But it may also be
needed to actually overwrite the file additional to suppressing
the alert.
Another way would be to ERASE the file from VFP,
before you save from excel. If that file is open in another
Excel session, you'll have a problem anyway.
I tend to solve such conflicts by adding a timestamp
to the filename if the pure file name already exists.
Bye, Olaf.
Hey Olaf,
If you don't mind would you tell me how you "add a timestamp" to a
filename?
Thank you,
john3
.
- Follow-Ups:
- Re: saveas without prompt
- From: Dan Freeman
- Re: saveas without prompt
- References:
- saveas without prompt
- From: bnmohan via DBMonster.com
- saveas without prompt
- Prev by Date: would like to include timestamp in filename
- Next by Date: Conclusion of One Man Shop Thread
- Previous by thread: Re: saveas without prompt
- Next by thread: Re: saveas without prompt
- Index(es):
Relevant Pages
|