+ Reply to Thread
Results 1 to 3 of 3

Refer to named ranged calculated in names manager

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,944

    Refer to named ranged calculated in names manager

    Hi,

    question:

    i have named range in name manager:

    S_EnabledTopologiesCount where formula is:
    Please Login or Register  to view this content.
    - so dynamic formula referencing to another named range.

    and from VBA this is only one way to refer to this variable?

    Please Login or Register  to view this content.
    ??

    i tried with application.range("S_EnabledTopologiesCount").value but this is not working.

    Please anybody confirm,
    Jacek

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,861

    Re: Refer to named ranged calculated in names manager

    This is how I see it:

    If your S_enabledTopologies is refering to some static range then you can directly have access to it's contents.
    i.e. the first cell contents:
    Please Login or Register  to view this content.
    But as S_enabledTopologiesCount is a dynamic name (just a formula) it is treated by Excel as a kind of a reciepe. It's calculated in a worksheet "on request from recalculation", and current value is not stored.
    So to access this value from VBA you (unfortunately) shall "ask for calculation of this formula" - and indeed by using evaluate you do it.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,944

    Re: Refer to named ranged calculated in names manager

    thank you for such a great explanation,

    Jacek

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Indirect to named ranged
    By jaryszek in forum Excel General
    Replies: 6
    Last Post: 01-28-2019, 09:26 AM
  2. Refer to name of named range - name manager
    By jaryszek in forum Excel General
    Replies: 16
    Last Post: 05-15-2018, 08:15 AM
  3. [SOLVED] Filter between two named ranged dates
    By wacky_diva in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2017, 09:40 PM
  4. Replies: 1
    Last Post: 01-24-2017, 04:10 PM
  5. named ranged within named range
    By dluhut in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2014, 01:47 PM
  6. Lookup Two Named Ranged
    By yawnzzzz in forum Excel General
    Replies: 3
    Last Post: 09-24-2010, 03:10 PM
  7. range names-How do you progammaticly refer to named ranges?
    By Zoomer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2005, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1