T
Tim Johnson
Hi there,
I am pushing several Excel files out from an Access database and trying to
save them each in a folder. The following code is contained within a loop:
Set xlApp = CreateObject("Excel.Application")
Set xlBook = xlApp.Workbooks.Add
Set xlSheet = xlBook.Worksheets(1)
<Code filling in data to xlSheet>
xlBook.SaveAs FileName:=Environ("userprofile") & "\DAD_TEMP\DAI_" & Dist
& ".xls", FileFormat:=56
xlApp.Quit
Everything seems to be working fine, except that I am being prompted with
the "Do you want to save the changes you made to book..." I have verified
that the DAD_TEMP folder exists, and it is empty, so there shouldn't be any
conflicts. I am using Office 2003, so FileFormat:=56 should equate to
xlExcel8 (97-2003 format)...I'm lost.
What am I doing wrong?
Thanks in advance,
Tim
I am pushing several Excel files out from an Access database and trying to
save them each in a folder. The following code is contained within a loop:
Set xlApp = CreateObject("Excel.Application")
Set xlBook = xlApp.Workbooks.Add
Set xlSheet = xlBook.Worksheets(1)
<Code filling in data to xlSheet>
xlBook.SaveAs FileName:=Environ("userprofile") & "\DAD_TEMP\DAI_" & Dist
& ".xls", FileFormat:=56
xlApp.Quit
Everything seems to be working fine, except that I am being prompted with
the "Do you want to save the changes you made to book..." I have verified
that the DAD_TEMP folder exists, and it is empty, so there shouldn't be any
conflicts. I am using Office 2003, so FileFormat:=56 should equate to
xlExcel8 (97-2003 format)...I'm lost.
What am I doing wrong?
Thanks in advance,
Tim