LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Export from Access damages my Excel-Workbook

Hi Guys (and girls of course)

I run following code in Access2003 (I now, this is an excel-forum, but
I think the problem is in Excel):
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, "PLAN",
FileName, True

FileName is the name of a Workbook, that i copy prior to this line. I
tested the copy procedure of the sheet separately to see if this could
be the problem, it's not.

When the code ran, i open my workbook and i get the following
statement: File Error, Data may have been lost.
And the Exported Worksheet is all scrambled, also another worksheet,
that was there before the export is damaged.

If I put a blank worksheet into FileName, it works perfect.

Anyone knows, why that happens, and/or how I can get around that?
Do I have to move the worksheet, after exporting? would be
troublesome.

Thanks for your help, it's highly appreciated

Carlo

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export to Access, Workbook Treated as a Query Response ConfusedNHouston Excel Discussion (Misc queries) 1 March 3rd 08 08:28 PM
Export to Access from Excel Secret Squirrel Excel Discussion (Misc queries) 0 February 7th 06 11:44 PM
Export Access Tables to Excel Workbook Tj Excel Programming 1 November 21st 05 09:50 PM
Export from Access to Excel tamxwell Excel Programming 9 June 30th 05 08:31 PM
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM


All times are GMT +1. The time now is 01:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"