Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / May 2006

Tip: Looking for answers? Try searching our database.

Import a spreadsheet using a macro in access?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George - 29 May 2006 08:08 GMT
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
Ken Snell (MVP) - 29 May 2006 15:34 GMT
See TransferSpreadsheet action in the macro.

Signature

       Ken Snell
<MS ACCESS MVP>

> 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
George - 30 May 2006 03:07 GMT
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

> See TransferSpreadsheet action in the macro.
>
[quoted text clipped - 4 lines]
> > Thanks
> > George
Ken Snell (MVP) - 30 May 2006 04:10 GMT
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.

Signature

       Ken Snell
<MS ACCESS MVP>

> Thanks very much Ken,
> Now i have the problem that the new file i upload is appending the old
[quoted text clipped - 13 lines]
>> > Thanks
>> > George
George - 30 May 2006 04:53 GMT
very good thanks for that

> Delete the table in a macro action before the TransferSpreadsheet action.
>
[quoted text clipped - 19 lines]
> >> > Thanks
> >> > George
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.