+ Reply to Thread
Results 1 to 9 of 9

FormulaArray Error

  1. #1
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    FormulaArray Error

    Hello,

    I've made a macro and below is the code that was given to me.

    Please Login or Register  to view this content.
    When I save this macro and try to re-run it, it's giving me an error

    Run time error '1004'
    Unable to set the FormulaArray property of the Range class.

    I tried searching in Google and says that, one possibility is that it could be too long.

    However, I tried to shorten it, and still giving me the same error.

    So what should I do in order for my cell to have this Formula Array written and then copied over?

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: FormulaArray Error

    Put the formula in to named range and then refer the range name in your formula.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: FormulaArray Error

    http://www.excelforum.com/excel-prog...y-formula.html

    OR

    http://www.excelforum.com/excel-prog...-too-long.html

  4. #4
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: FormulaArray Error

    When you say 'named range', are you defined name range? Or are you indicating to put it into a variable?

    If you really refer to named range, I have to avoid it, because higher up doesn't understand complicated formula. Thus, I need to put it into as simple as possible where it'll show where it's taking the cell from and where it's doing the lookup from etc.

    Tried below and still doesn't work

    Please Login or Register  to view this content.
    Quote Originally Posted by AB33 View Post
    Put the formula in to named range and then refer the range name in your formula.
    Last edited by dluhut; 09-12-2016 at 03:34 PM.

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,841

    Re: FormulaArray Error

    If you attach a workbook (not pictures) with some data and the expected output it will be much easier to help you.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: FormulaArray Error

    I have attached two links with two different approaches, one of them showing you how to split the array in to 255 limit.

  7. #7
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: FormulaArray Error

    It's ok.

    I gave up and I don't have time to play around with the macro.

    Since I need to give this by end of day which is another 1 hour.

    But in short, I'm trying to:
    unlock certain sheets,
    clear contents of specific cells,
    put in an array formula where it's link to an external workbook in a network drive, <---this is where I'm stuck even though I was able to create the formula and use the macro to see how it was written, and still, when I try to run it, it's giving error
    copy it and paste it across specified cells, and
    locked back the sheets.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: FormulaArray Error

    You do not need so, as Jacc has asked you to attach a sample. We will do the job for you.

  9. #9
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: FormulaArray Error

    I'll upload the sample once I'm done with this. I need to learn this and to know how to do it going forward.

    Thanks!

+ 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. Error on unable to set FormulaArray Property
    By Matthewious2016 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2016, 09:48 PM
  2. FormulaArray run time error
    By norseman1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2016, 02:48 PM
  3. [SOLVED] FormulaArray Error 1004
    By smartbuyer in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-26-2016, 05:36 AM
  4. VBA Run time error on FormulaArray
    By tlscowden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2015, 10:52 PM
  5. [SOLVED] FormulaArray in VBA error message - not sure why
    By fredderf81 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2015, 12:52 PM
  6. unable to set FormulaArray property of Range Class Error
    By BuglerX in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2011, 01:13 PM
  7. unable to set FormulaArray property of Range class Error
    By BuglerX in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2011, 12:14 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