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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transferspreadsheet - bring back defined name ranges in xls.

Status
Not open for further replies.

mikew71

MIS
Mar 17, 2005
29
0
0
GB
I can quite easily link in a xls spreadsheet into Access by using a print range, but the info I'm working with now is based on defined named ranges in xls, despite searching I cant find the correct code for the transfer spreadsheet command for the 'range' section. Any ideas?
 
its ok, sorted now.. blatantly simple really.
 
How about posting the solution for others to see?

Clint Galliano
Halliburton Energy Services
BAROID PSL
"Done ONCE, Done RIGHT!"
 
I figured it out now...I used the "TransferSpreadsheet Method" but was copying the range of cells from the "Define Name" window and pasting it into the "Range" section of the code. That was the problem because it has the cell references prefixed with a "$". Once I removed them from the code, it worked fine.

Clint Galliano
Halliburton Energy Services
BAROID PSL
"Done ONCE, Done RIGHT!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top