Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.TransferSpreadsheet - sheet ref

Status
Not open for further replies.
Mar 25, 2003
34
GB
Using transfer spreadsheet thus:

DoCmd.TransferSpreadsheet Filename:=FileNameCheck, TableName:="tblBG" & CStr(i) & "L2", Range:="'L4'!A11:S300", HasFieldNames:=True

I have a problem because I want to import the range "A11:S300" on a specific sheet: "L4". The problem is i don't know the syntax on how to do this, the example above doesn't work, can anyone help?
 
DoCmd.TransferSpreadsheet acLink, , "tblBG", "FileNameCheck", -1, "L4!A11:S300"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top