Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default making a named range available from an add-in

I created a worksheet with a defined range stored on a worksheet. I then
created and installed this sheet as an Excel add-in.

My question is as follows. How can I make the named range I created in my
workbook available once that workbook has been turned into an add-in. So far
I cannot find my named range.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default making a named range available from an add-in

Address it directly, assuming you want to do it fro another workbook

Workbooks("Stats 2009.xls").Names("All").RefersTo

--
__________________________________
HTH

Bob

"Solutions Manager" wrote in
message ...
I created a worksheet with a defined range stored on a worksheet. I then
created and installed this sheet as an Excel add-in.

My question is as follows. How can I make the named range I created in my
workbook available once that workbook has been turned into an add-in. So
far
I cannot find my named range.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default making a named range available from an add-in

With respect to named ranges there's no difference whether the file is an
addin or otherwise. However an addin will never be the active workbook.

To refer to anything within 'self' start by qualifying with ThisWorkbook

Dim nm As Name
Set nm = Workbooks("myAddin.xla").Names("myName")
' or
Dim rng As Range
Set rng = ThisWorkbook.Names("myName").RefersToRange


If you want to refer to a name within some other addin
Set nm = Workbooks("myAddin.xla").Names("myName")

Regards,
Peter T

"Solutions Manager" wrote in
message ...
I created a worksheet with a defined range stored on a worksheet. I then
created and installed this sheet as an Excel add-in.

My question is as follows. How can I make the named range I created in my
workbook available once that workbook has been turned into an add-in. So
far
I cannot find my named range.



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
Via code, making 2 named Ranges Indentical, upon change ML0940 Excel Programming 17 July 24th 08 08:11 AM
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
If any cell in named range = 8 then shade named range JJ[_8_] Excel Programming 3 August 26th 05 11:09 PM
Blank cells in named range- how to ignore them when making my graph? Help plz! KR Excel Discussion (Misc queries) 0 August 24th 05 02:35 PM


All times are GMT +1. The time now is 09:47 PM.

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"