Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default VBA Vlookup External Reference

Any help would be appreciated
Lookup_Data = WorksheetFunction.VLookup(Model, RngLookup, 2, False)
I want to use RngLookup for a range eventually in an .xla however I cant
seem to get an external reference to an open file when it is not the active
workbook

In other words is it possible to use that function referencing an open file
that is not the activesheet? if so I need the syntax

Thank you

Jeff




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default VBA Vlookup External Reference

Hi

Try something like this.

Set rnglookup = Workbooks("book1").Sheets("sheet1").Range
("a1:b3")

model = 1

lookup_data = WorksheetFunction.VLookup(model, Range
(rnglookup.Address(external:=True)), 2, False)
MsgBox lookup_data


Tony
-----Original Message-----
Any help would be appreciated
Lookup_Data = WorksheetFunction.VLookup(Model, RngLookup,

2, False)
I want to use RngLookup for a range eventually in an .xla

however I cant
seem to get an external reference to an open file when it

is not the active
workbook

In other words is it possible to use that function

referencing an open file
that is not the activesheet? if so I need the syntax

Thank you

Jeff




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-

----
http://www.newsfeeds.com - The #1 Newsgroup Service in

the World!
-----== Over 100,000 Newsgroups - 19 Different Servers!

=-----
.

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
External reference to a Column AshMorK Excel Worksheet Functions 0 April 15th 09 06:51 PM
External Reference in Vlookup C Brandt Excel Discussion (Misc queries) 4 July 3rd 07 04:45 AM
sumproduct external reference#2 anand Excel Worksheet Functions 5 May 23rd 05 11:36 PM
sumproduct external reference anand Excel Worksheet Functions 2 May 23rd 05 11:23 PM
External Reference Iain Excel Discussion (Misc queries) 3 February 8th 05 06:53 PM


All times are GMT +1. The time now is 11:48 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"