Importing from excel- range problem

P

PF

I use transfersppreadsheet to import a range
like

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblRef",
strFixRef, True, "Cross Reference!A:H"

I dont need column b and d in the excel sheet.

Is there a way to specify import a,c,e,f,g,h

Thanks
Pierre
 
V

Van T. Dinh

The named range to be used in the TransferSpreadsheet Method MUST be
contiguous.

Import the contiguous range and then delete the Fields "b" & "d" in the
DesignView of the importrd Table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top