Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Appending data to Existing Excel Data

Status
Not open for further replies.

mlrmlr

Technical User
Mar 17, 2006
168
US
Hello All,

This is my first time using this forum. It was highly recommended by a long time member. :)

I am reusing some export code to export data from Access (2000) to Excel using a criteria form. I would like to append data to an Excel sheet without clearing the current data. How can I perform this function?

The export function works well. The only problem is when new data is exported, the current Excel data is replaced with the new exported data.

Here is part of the code:

<BEGIN CODE>
Set EXL = CreateObject("Excel.Application")
Set WB = EXL.Workbooks.Open("C:\WO_Activity_Report.xls")
WB.Sheets ("WO_Activity_Report")
WB.Save
EXL.Quit
Set EXL = Nothing
<END CODE>

Your assistance is greatly appreciated.
 
POSTED IN INCORRECT FORUM. SORRY!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top