troubleshooting Question

Using Range in DoCmd.TransferSpreadsheet acImport

Avatar of bejhan
bejhan asked on
Microsoft AccessVisual Basic ClassicMicrosoft Excel
6 Comments2 Solutions4395 ViewsLast Modified:
I tried to use "A:P,T:U,W:X" as my range in DoCmd.TransferSpreadsheet acImport but I got the error:

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "ntblNewItems", GetInputDirectory("New Business") & lstFileList, True, "A:P,T:U,W:X"

Runtime error 3011
The Microsoft Jet Database engine could not find the object 'A:P,T:U,W:X'

Is there a way to just import certain columns from a spreadsheet?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros