Exporting with Range?

M

Mark

Hello all,

I'm wanting to export a table to an excel spreadsheet, but putting the data
in a location of my choosing.

TransferSpreadSheet help says you can not use the range on an Export.
However, I did a search here and someone said that it would work.

It partially works, but I can't seem to get it to allow me to put it in a
workbook. Also, it will not overwrite if the file exists already.

Is there something better to use to export data in a range of my choosing,
or what am I doing wrong with transferSpreadsheet.

Docmd.transferspreadsheet acExport, , "tbShiftHld","C:\Test.xls", True,
"B251:F25"
 

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

Top