Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
frtklau
 
Posts: n/a
Default Named Range in ANOTHER workbook


hi
I have defined many NamedRanges in 2 workbooks. and copying between
NamedRange(s) between the 2 workbooks is desired.

I have a need to access THOSE NamedRanges from the 3rd book, thus I
need some reference method like:
wb_s.range("ThisRange")
wb_t.range("ThatRange")
<do not prefer BOOK.SHEET.RANGE way

so that I can do
dim A as Variant
A = wb_s.range("From")
wb_t.range("To")=A

if refencing like BOOK.Range(Name) is not feasible, then
dim A as Variant
wb_s.activate
A = range("From")
wb_t.activate
range("To")=A
but this is not clean.

Is Book.Range("MyName") possible?

Frankie.


--
frtklau
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

maybe:

Dim myBook As Workbook
Set myBook = Workbooks("book2.xls")

myBook.Names("thisrange").RefersToRange.Copy _
Destination:=ActiveSheet.Range("a1")



frtklau wrote:

hi
I have defined many NamedRanges in 2 workbooks. and copying between
NamedRange(s) between the 2 workbooks is desired.

I have a need to access THOSE NamedRanges from the 3rd book, thus I
need some reference method like:
wb_s.range("ThisRange")
wb_t.range("ThatRange")
<do not prefer BOOK.SHEET.RANGE way

so that I can do
dim A as Variant
A = wb_s.range("From")
wb_t.range("To")=A

if refencing like BOOK.Range(Name) is not feasible, then
dim A as Variant
wb_s.activate
A = range("From")
wb_t.activate
range("To")=A
but this is not clean.

Is Book.Range("MyName") possible?

Frankie.

--
frtklau


--

Dave Peterson
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
Identifying single column within named range ESAEO Excel Discussion (Misc queries) 2 March 24th 05 09:30 PM
Define a range based on another named range Basil Excel Worksheet Functions 2 February 21st 05 01:47 PM
How do you point to a named range in linked workbooks? KG Excel Discussion (Misc queries) 5 February 18th 05 09:55 PM
Poor Workbook Performance due to Named Ranges jrusso Excel Discussion (Misc queries) 2 January 10th 05 11:39 PM
named range refers to: in a chart Spencer Hutton Excel Discussion (Misc queries) 1 December 14th 04 10:15 PM


All times are GMT +1. The time now is 02:28 AM.

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

About Us

"It's about Microsoft Excel"