default to xls

  • Thread starter Thread starter mcourter
  • Start date Start date
M

mcourter

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

DoCmd.RunCommand acCmdImport

tia,

mcnewsxp
 
Hi,
use the transferspreadsheet method instead!
Syntax:

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

HTH
Good luck
 

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

Back
Top