• 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
0
Srinivas Rao
Asked:
Srinivas Rao
  • 2
2 Solutions
 
mbizupCommented:
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
3
 
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
0
 
Matt NicholasBusiness AnalystCommented:
Closing an overdue task
0
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