TransferSpreadsheet one specific sheet

Teuntja123

Registered User.
Local time
Today, 09:19
Joined
Sep 17, 2013
Messages
21
Hi all,

I want to import one specific sheet from an excel file and use the action TransferSpreadsheet.
The excel file (Named Report) has 4 sheets, but I want access to upload the second one called "Data".
What do I need to typ in the field name? C:/Documents/Report/????

Thanks in advance!
 
Teuntja123, Welcome to AWF :)

Use the name of the Sheet in place of the Range argument.. Something along the lines of.
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12 , "TableName", "pathTo\Your\ExcelFile.xlsx", True, "theSheetNameHere"
 
[FONT=&quot]Hi,

I don't know what you mean with the code..
Can't I change the link which you see in the attachment?
I Need the Sheet "Data" from the Inbound_Report


[/FONT]
 

Attachments

  • clip_image002.gif
    clip_image002.gif
    22.3 KB · Views: 341
After Has Field Names there is another Row called Range, in that type Data
 
No need to feel embarrassed, this is just a part of learning. :)

Glad you have it working. Good luck.
 

Users who are viewing this thread

Back
Top Bottom