+ Reply to Thread
Results 1 to 7 of 7

Evaluate Named Range Array formula to VBA Array

  1. #1
    Forum Contributor
    Join Date
    07-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    476

    Evaluate Named Range Array formula to VBA Array

    Hi,

    I have not been able to solve this. Does anyone know if it is possible to Evaluate a named range array operation into a VBA array. I can only populate the first value of the array operation.


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Evaluate Named Range Array formula to VBA Array

    It is possible but you must use additional function to force array return:
    Please Login or Register  to view this content.
    for example.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Contributor
    Join Date
    07-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    476

    Re: Evaluate Named Range Array formula to VBA Array

    AMAZING! Do you know why that is by any chance? What am I not understanding syntax wise? Seriously though Good Stuff!

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Evaluate Named Range Array formula to VBA Array

    If you do not include a function that may naturally return an array, only one value will be returned by Evaluate. Same may occur if you use formula in the worksheet and do not array enter it.

  5. #5
    Forum Contributor
    Join Date
    07-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    476

    Re: Evaluate Named Range Array formula to VBA Array

    Quote Originally Posted by Izandol View Post
    If you do not include a function that may naturally return an array, only one value will be returned by Evaluate. Same may occur if you use formula in the worksheet and do not array enter it.
    True. I just don't understand why I can't evaluate the formula, without Index.

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Evaluate Named Range Array formula to VBA Array

    There is no equivalent for Ctrl+Shift+Enter with Evaluate so you must use a function like INDEX.

  7. #7
    Forum Contributor
    Join Date
    07-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    476

    Re: Evaluate Named Range Array formula to VBA Array

    That makes sense man! Thank you

+ 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. [SOLVED] Using Evaluate With Array Formula
    By :) Sixthsense :) in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-10-2013, 06:47 AM
  2. Converting a Named Range from a Formula to an Integer Array
    By mattflow in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2011, 05:59 PM
  3. Refer to a named range in a CSE array formula?
    By JayUSA in forum Excel General
    Replies: 3
    Last Post: 01-11-2010, 10:56 PM
  4. Named range in array formula?
    By samplecode in forum Excel General
    Replies: 2
    Last Post: 01-19-2007, 11:01 AM
  5. Possible to reference column of named range in array formula?
    By Kel Good in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2005, 02:50 AM

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