+ Reply to Thread
Results 1 to 6 of 6

Unable to set the FormulaArray property of the Range Class

  1. #1
    Registered User
    Join Date
    04-26-2016
    Location
    Minneapolis
    MS-Off Ver
    2013
    Posts
    21

    Unable to set the FormulaArray property of the Range Class

    I am having some trouble with the following,
    -I have noticed this error seems to come up when the formula is > 255 characters; people have then split the formula in two. The formula I have posted is 223 character and I currently have this formula in the cells and it is working.

    -I have only pasted the first part of the code i.e. the range going from H5:H29, I basically have the same formula except the LARGE part changes by 1.

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 12-28-2016 at 06:41 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Unable to set the FormulaArray property of the Range Class

    Try this instead:
    Please Login or Register  to view this content.

    No loop.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-26-2016
    Location
    Minneapolis
    MS-Off Ver
    2013
    Posts
    21

    Re: Unable to set the FormulaArray property of the Range Class

    JBeaucaire,

    Thank you for the reply, this did actually work however I have had to change the formula a bit. I am somewhat familiar with r1c1 style however not sure I get it for the formula you had posted.

    I was wondering if you'd be able to assist with the code below (as your suggestion did work with my original formula -


    Please Login or Register  to view this content.
    thanks so much
    Last edited by JBeaucaire; 01-09-2017 at 07:10 PM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Unable to set the FormulaArray property of the Range Class

    ROWS($A$5:A5) becomes ROWS(R5C1:RC)

    $B$1 becomes R1C2

    $M$17 becomes R17C13

  5. #5
    Registered User
    Join Date
    04-26-2016
    Location
    Minneapolis
    MS-Off Ver
    2013
    Posts
    21

    Re: Unable to set the FormulaArray property of the Range Class

    JBeaucaire,

    do you know of any other way to get around the 255 character limit aside using breaking the formula up and using REPLACE?

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Unable to set the FormulaArray property of the Range Class

    Well... one trick that comes to mind is the fact that named formulas are by default treated as arrays. So, you could:

    1) select the first cell
    2) create a named range using that formula, call it MySpecialFormula or whatever
    3) Then the formula you enter is a normal formula.
    =MyFormula


    Please Login or Register  to view this content.

+ 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. Unable to set the FormulaArray property of the range class
    By BradleyS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2013, 07:57 AM
  2. Unable to set the FormulaArray Property of the Range Class?
    By stockgoblin42 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2013, 09:45 AM
  3. Unable to set the FormulaArray property of the Range class
    By nathansav in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2013, 01:50 PM
  4. Unable to set the property of the class range FormulaArray in VBA
    By karthikin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-21-2011, 10:00 AM
  5. Replies: 2
    Last Post: 10-17-2005, 04:05 PM
  6. Unable to set FormulaArray property of the Range class
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2005, 04:05 PM
  7. [SOLVED] unable to set the FormulaArray property of the Range class
    By jim kozak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-29-2005, 10:06 AM

Tags for this Thread

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