• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 75
  • Last Modified:

I need to copy this data into MS access

vba code for copying table from excel to ms access
Srinivas Rao
Srinivas Rao
  • 2
2 Solutions
If you are working in Access, importing data, use the TransferSpreadsheet method.  The following will import a spreadsheet, with the first row as column headers.

DoCmd.TransferSpreadsheet acImport, , "YourTableName","C:\YourPath\YourFilename.xlsx", True

Open in new window

This Microsoft article explains other options including range to import:
TransferSpreadsheet method
Matt NicholasBusiness AnalystCommented:
Alternatively to the above, just start from Access and locate the 'External Data' tab and 'New Source' buttons

You will be guided through this process with Access
Matt NicholasBusiness AnalystCommented:
Closing an overdue task
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now