Skip to content

Instantly share code, notes, and snippets.

@jakelosh
Created July 4, 2013 05:32
Show Gist options
  • Save jakelosh/5925128 to your computer and use it in GitHub Desktop.
Save jakelosh/5925128 to your computer and use it in GitHub Desktop.
My supervisor at work was interested in archiving trades stored in Excel worksheets in one giant Excel database. I suggested using an Access database instead. What follows was based primarily on a response from from HansUp on StackOverflow.com to a user with a question similar to mine (http://goo.gl/D#EUk). This stub imports the data stored in t…
Public Sub ImportExcelWorksheetData()
Dim strPath As String
strPath = "C:\Documents and Settings\Some Folder\temp.xls"
DoCmd.TransferSpreadsheet acImport, , "tblTemp", _
strPath, True
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment