Access 2003.
What is the VBA code that will not only import an excel file but also allows you to include a tab name and a range within that tab ?
/////////////////////////////////////////////////
No TAB name and no range specified
DoCmd.TransferSpreadsheet acImport, 8, "Table_Source_1", "C:\TEMP\Test.XLS", True, ""
/////////////////////////////////////////////////
Range specified, but there is no TAB name
DoCmd.TransferSpreadsheet acImport, 8, "Table_Source_1", "C:\TEMP\Test.XLS", True, "M1:M2"
/////////////////////////////////////////////////
What is an import code that is the same as above but, with
TAB (Customer) name specified as well as a range (M1:M2)within that TAB name.
What is the VBA code that will not only import an excel file but also allows you to include a tab name and a range within that tab ?
/////////////////////////////////////////////////
No TAB name and no range specified
DoCmd.TransferSpreadsheet acImport, 8, "Table_Source_1", "C:\TEMP\Test.XLS", True, ""
/////////////////////////////////////////////////
Range specified, but there is no TAB name
DoCmd.TransferSpreadsheet acImport, 8, "Table_Source_1", "C:\TEMP\Test.XLS", True, "M1:M2"
/////////////////////////////////////////////////
What is an import code that is the same as above but, with
TAB (Customer) name specified as well as a range (M1:M2)within that TAB name.