TransferSpreadsheet

D

DZ

Hi

How can I import a specific worksheet to a specific table. Where the sheet
and table have different names. It seems from the help files, you can only do
this if they are named the sames

Excel Sheet = "SummarySheet"
Access Table = "Summaries"

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8,
"Summaries", strFullPathOfExcelFile, True

Thanks for any help.
I'll give credt to helpful responses
 
P

pietlinden

Hi

How can I import a specific worksheet to a specific table. Where the sheet
and table have different names. It seems from the help files, you can only do
this if they are named the sames

Excel Sheet = "SummarySheet"
Access Table = "Summaries"

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8,
"Summaries", strFullPathOfExcelFile, True

Thanks for any help.
I'll give credt to helpful responses

how about this...

http://www.mvps.org/access/general/gen0008.htm
 

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