Importing from a excel file from a spasific Worksheet

A

AJOLSON

I am useing the following command to import information from an excel file
DoCmd.TransferSpreadsheet acImport, , "InputTbl", "C:File\BAT.xls", False

My problem is that it will only import from the first excell worksheet in
this file. I want to import other data from othe worksheets within this
file.

How would I code to pull from a worksheet named "Template?" It is the third
worksheet from within this file.

Thanks
Andy
 

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