Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 274
Default range name does not appear name box?

Hi All,

The code snippet below is how l have added a named range to my
workbook. The variables are defined via a form and the range is added
to the workbook. The problem is that when l look for the name via the
name dropdown arrow it is not there! If l look via Insert, Names,
Define l can see it and l can do calculations, lookups etc. Can
anybody throw any light on this please, l need the name to appear in
the dropdown.

ActiveWorkbook.Names.add Name:=RngName, RefersTo:= _
"=OFFSET(" & sht & tlc & ",0,0," & Rfun & "," & Cfun & ")"

Regards

Michael
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default range name does not appear name box?

Dynamic ranges (ones that use formulas) are volatile, and can not appear in
the drop down box. You need to somehow make it static (constant) if you want
it in the dropdown. Note that you can still use it in any formula/reference
by just typing the name.

Why do you need the name to appear in the dropdown?
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"michael.beckinsale" wrote:

Hi All,

The code snippet below is how l have added a named range to my
workbook. The variables are defined via a form and the range is added
to the workbook. The problem is that when l look for the name via the
name dropdown arrow it is not there! If l look via Insert, Names,
Define l can see it and l can do calculations, lookups etc. Can
anybody throw any light on this please, l need the name to appear in
the dropdown.

ActiveWorkbook.Names.add Name:=RngName, RefersTo:= _
"=OFFSET(" & sht & tlc & ",0,0," & Rfun & "," & Cfun & ")"

Regards

Michael

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default range name does not appear name box?

Dynamic ranges (ones that use formulas) are volatile, and can not appear in
the drop down box. You need to somehow make it static (constant) if you want
it in the dropdown. Note that you can still use it in any formula/reference
by just typing the name.

Why do you need the name to appear in the dropdown?
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"michael.beckinsale" wrote:

Hi All,

The code snippet below is how l have added a named range to my
workbook. The variables are defined via a form and the range is added
to the workbook. The problem is that when l look for the name via the
name dropdown arrow it is not there! If l look via Insert, Names,
Define l can see it and l can do calculations, lookups etc. Can
anybody throw any light on this please, l need the name to appear in
the dropdown.

ActiveWorkbook.Names.add Name:=RngName, RefersTo:= _
"=OFFSET(" & sht & tlc & ",0,0," & Rfun & "," & Cfun & ")"

Regards

Michael

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
Cond. Format Data Bars of range based on values of another range alexmo Excel Worksheet Functions 4 January 16th 09 04:03 AM
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
formula to sort a range so that it matches the exact rows of a column that is outside that range? steveo Excel Discussion (Misc queries) 1 June 18th 06 02:05 AM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM


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