Importing data from Excel using TransferSpreadsheet

bugsy

Registered User.
Local time
Yesterday, 17:51
Joined
Oct 1, 2007
Messages
99
i usually use TransferSpreadsheet

does anyone know where i put the tab, if excel has several tabs ?
Code:
DoCmd.TransferSpreadsheet acImport, , "TableInAccess", pathFromExcel, vbYes
 
DoCmd.TransferSpreadsheet acImport, , "TableInAccess", pathFromExcel, vbYes,"Sheet1!A1:E20"


you'd have to play around with it, I haven't tried it, but it is the Range you have to work with...the sheet name alone may work also?
 

Users who are viewing this thread

Back
Top Bottom