View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Linking to external workbook

Also, you can enter a row oriented formula template in one command

Range("B2:B100").formula =
"=Index([Book1.xls]Sheet1!$A$1:$A$1000,Match(A2,[Book1.xls]Sheet1!$F$1:$F$10
0,0),1)"

as an example

--
Regards,
Tom Ogilvy


"Steve" <No Spam wrote in message ...
Sorry if you've read this. However, I didn't see the question appear in my
reader.

I have a project that includes parsing a .txt file into Excel. Included in
the fields imported is an EmplID. I need to retrieve data from separate
workbooks based on this. My experiment with Index and Match produced slow
results when linked to one other workbook (about a minute for 4000

records).
I am currently looping using i to increment the row number in the lookup
formula.

Is there a faster method (either not using Index/Match or not looping)?

Steve




Steve