default to xls

M

mcourter

can i default the file type to xls using this code?

DoCmd.RunCommand acCmdImport

tia,

mcnewsxp
 
F

freakazeud

Hi,
use the transferspreadsheet method instead!
Syntax:

TransferSpreadsheet(TransferType, SpreadsheetType, TableName, FileName,
HasFieldNames, Range, UseOA)

HTH
Good luck
 
Top