I want to import only the information from an excel sheet like the one below where the answers for Q1 and Q2 are No and Yes respectively.
I'm using this code below that is working but importing all cells:
What do I need to add?

I'm using this code below that is working but importing all cells:
Code:
Private Sub Command31_Click()
DoCmd.TransferSpreadsheet acImport, _
acSpreadsheetTypeExcel9, "CustomerRecords", "C:\Documents and Settings\mstafford\Desktop\CustomerRecords.xls", True, "C1:I20"
End Sub
What do I need to add?
Last edited: