DEllis
Active Member
- Joined
- Jun 4, 2009
- Messages
- 344
- Office Version
- 365
- Platform
- Windows
Hi Everyone, I have been trying to use VBA to import a spreadsheet using the following code:
Function Import_Vendor_Invoice()
DoCmd.TransferSpreadsheet acImport, 3, "TBL_one", "C:\Users\UserName\Documents\Data\Database Samples 2.xls", True, "Sheet1!A1:K18"
End Function
This does not work. I get an error 3918.
I have Office 365 Access and I have tried Access 2010 as well.
Any help is greatly appreciated.
Thank you,
DEllis
Function Import_Vendor_Invoice()
DoCmd.TransferSpreadsheet acImport, 3, "TBL_one", "C:\Users\UserName\Documents\Data\Database Samples 2.xls", True, "Sheet1!A1:K18"
End Function
This does not work. I get an error 3918.
I have Office 365 Access and I have tried Access 2010 as well.
Any help is greatly appreciated.
Thank you,
DEllis