whoneeds8
02-01-2005, 08:22 AM
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.
http://www.dfwls1.com/hosting/albums/userpics/11225/excel.jpg
I'm using this code below that is working but importing all cells:
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?
http://www.dfwls1.com/hosting/albums/userpics/11225/excel.jpg
I'm using this code below that is working but importing all cells:
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?