Copy/paste within Excel with Access code builder

P

Peter Adema

I have read a lot of posts, but did not find my problem.
From an Access(2000)query, I create an Excel file.
Some of those values must be copied/pasted into an existing Excel file/sheet.
How can I activate this open Excel file?
"Windows("Test.XLS).Activate"
"Sheets("this sheet").select"

How can I give in Access VB code a range of cells, copy them and than past
only the values into another Excel file/sheet?

Thanks for your support!
 
B

Brian

Peter Adema said:
I have read a lot of posts, but did not find my problem.
From an Access(2000)query, I create an Excel file.
Some of those values must be copied/pasted into an existing Excel file/sheet.
How can I activate this open Excel file?
"Windows("Test.XLS).Activate"
"Sheets("this sheet").select"

How can I give in Access VB code a range of cells, copy them and than past
only the values into another Excel file/sheet?

Thanks for your support!

Not being an expert on Excel Automation I can't give you a detailed answer,
but articles like this should give you some clues:

http://support.microsoft.com/default.aspx?scid=kb;en-us;210288
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top