+ Reply to Thread
Results 1 to 11 of 11

FormulaArray is non-functional in VBA

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    FormulaArray is non-functional in VBA

    Please Login or Register  to view this content.
    I get error "Unable to set the FormulaArray property of the Range class'... anyone have a clue?

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: FormulaArray is non-functional in VBA

    I got this one working after entering the formula as real formula in Excel then made a copy back to VBA

    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Re: FormulaArray is non-functional in VBA

    That is exactly how I set this up but for some reason the formula within VBA does not want to run. I am wondering if that might be the issue. I use FormualaArrays within other workbooks with no issues... Have a clue?

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: FormulaArray is non-functional in VBA

    But How the code I sent is working?
    Is it OK ?
    For me it was.

  5. #5
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Re: FormulaArray is non-functional in VBA

    PCI the formula works, but not when I put into code. I am running Office 2013...

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: FormulaArray is non-functional in VBA

    It seems there is issue when addressing cells in another sheet
    Next code seems working


    Please Login or Register  to view this content.
    To investigate more deeply a sample of your data will help

  7. #7
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Re: FormulaArray is non-functional in VBA

    PCI I am totally befuddled now... I have attached the file
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: FormulaArray is non-functional in VBA

    It's certainly easier with an example.
    A possibility could be to work with names for the ranges used
    See attached with NameO, Name,P, NameB
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Re: FormulaArray is non-functional in VBA

    Okay PCI it works but why does it only work with the named ranges?? So, I can remember it...

  10. #10
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: FormulaArray is non-functional in VBA

    I did not investigate deeply:
    Array formula length is limited, but so far I had in mind 256 characters which is larger than your formula ....!
    In the other hand the issue seems to be the reference to an other sheet, and names permit to skip this issue: Already seen in previous XLS with validation fields
    Is it the reason ... not sure
    Last edited by PCI; 05-14-2015 at 01:06 PM. Reason: Complement of information

  11. #11
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Re: FormulaArray is non-functional in VBA

    That is why I was so confused... I did not go over the 256 limit. Any way I appreciate all of your help here!

+ 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. VBA FormulaArray
    By jadown in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2013, 11:52 AM
  2. [SOLVED] FormulaArray
    By GreyBates in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2013, 04:56 PM
  3. FormulaArray
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2011, 06:32 PM
  4. [SOLVED] FormulaArray problem
    By Bri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2006, 09:40 PM
  5. Using FormulaArray in VBA
    By marcelobf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2006, 04:50 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