Import a spreadsheet using a macro in access?

G

George

Hi,
Is it possible to run a macro that imports an excel s/s into access without
having to go through the "Import spreadsheet wizard"?
Thanks
George
 
G

George

Thanks very much Ken,
Now i have the problem that the new file i upload is appending the old file.
I do not wish to keep the old data.How do i replace the existing table with
the new uploaded one?
Thanks
George
 
K

Ken Snell \(MVP\)

Delete the table in a macro action before the TransferSpreadsheet action.

Or, to avoid database bloat, just run a delete query as the first action in
order to delete the data from the table, then run the TransferSpreadsheet
action.
 
G

George

very good thanks for that

Ken Snell (MVP) said:
Delete the table in a macro action before the TransferSpreadsheet action.

Or, to avoid database bloat, just run a delete query as the first action in
order to delete the data from the table, then run the TransferSpreadsheet
action.
 

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