LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default vlookup from different file

Because elements from the worksheetfunctions class in Excel VBA can't pull
data from a closed workbook.


--
Regards,
Tom Ogilvy


"Baha" wrote in message
...
hi,
why this code always gives error anyone can help me?
Dim x As Long
x = Application.WorksheetFunction.VLookup(D7, "C:\Documents and _
Settings\BahadiAkcan\My Documents\Book1hhhfhfh.xls" & .Worksheets
_("Sheet1").Range("a1:d33"), 3, 0) _
MsgBox x
I have one more question, how can I use A1:F300 array from other file in
my
book1 without opening the file?
Thanks a lot

--
Regards,
Baha



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup in external file Tami Excel Worksheet Functions 2 October 8th 08 09:55 PM
using another file for vlookup dp New Users to Excel 2 August 28th 08 12:56 PM
Using VLOOKUP with a reference to a different file... beeblemonster Excel Worksheet Functions 21 August 14th 08 11:11 PM
Variabilize File Path or File Name in SumProduct (and Vlookup too) Mike H. Excel Worksheet Functions 2 January 7th 08 09:34 PM
File name in Vlookup sa02000[_12_] Excel Programming 1 October 12th 05 09:40 PM


All times are GMT +1. The time now is 01:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"