Ron, Thanks for your response.
I've changed my line of code to
Worksheets("Sheet1").Range("A2").CopyFromRecordset rs
I've also attached my code to a command button and that works. My next task
is to run the code everytime a worksheet becomes active. There will be
several worksheets and each time the users clicks to a new one I want the
data to be refreshed.
"Ron de Bruin" wrote in message
...
See if this help you
closed Excel books
http://www.rondebruin.nl/ado.htm
Or Access data
http://www.rondebruin.nl/accessexcel.htm