Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default Vlookup to closed workbook ?

Hi all, is the above possible ? If yes could i get some help please ?

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Vlookup to closed workbook ?

Simple enough Les, just like so

=VLOOKUP("b",'C:\Documents and
Settings\Bob\Desktop\[Def_sample.xls]Sheet2'!$A$1:$B$6,2,FALSE)

You shoukld be able top work it out to suit your workbook.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Les Stout" wrote in message
...
Hi all, is the above possible ? If yes could i get some help please ?

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default Vlookup to closed workbook ?

Thanks a million Bob.

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Vlookup to closed workbook ?

Bob gave you a good answer for using in a worksheet cell.

You can't do that in VBA code however. You would need to have your code
put the formula in a cell and then get the value it returns.

there are other methods, but none that are as direct or as fast.

John Walkenbach's site
http://www.j-walk.com/ss/excel/tips/tip82.htm
A VBA Function to Get a Value From a Closed File

You can modify the formula to do a Vlookup

Ron de Bruin's site
http://www.rondebruin.nl/ado.htm
Copy a range from closed workbooks (ADO)

--
Regards,
Tom Ogilvy


"Les Stout" wrote in message
...
Thanks a million Bob.

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default Vlookup to closed workbook ?

Thanks Tom.

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***
Reply
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
Closing Hidden Workbook when Active Workbook is Closed SusanK521 Excel Programming 5 September 24th 05 12:27 AM
vlookup with closed workbook Daniel[_21_] Excel Programming 0 June 19th 05 09:47 PM
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM
vlookup from VBA on a closed workbook Dennis_I Excel Programming 1 August 17th 04 06:58 PM
VLookup error message while accessing range in closed workbook. Peter McNaughton Excel Programming 1 September 10th 03 06:11 AM


All times are GMT +1. The time now is 12:45 PM.

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"