linking an excel file

P

Pierre

Hi all

I want to import an excel file with transferspreadsheet

Is there a way to specify a range like from the 6th row to the bottom (may
vary from one import to an other)

I was looking for something like

sheet1!a6:

Someone know the correct syntax?
is it possible?
what is the simplest way to do so



pierre
 
G

Guest

docmd.TransferSpreadsheet acLink,acSpreadsheetTypeExcel9,"_xlact","E:\VOUGHT
2005\2005 Actuals\IT Services\Vought IT Services June
2005.xls",true,"actual_res_export!D6:AN"

Notice in the range argument, there is not row number after column AN. This
will make the table start at row 6 and include rows D through AN from row 6
to the bottom of the spreadsheet. Empty rows will not be imported.
 

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