+ Reply to Thread
Results 1 to 5 of 5

long formula to vba macro - error 1004 unable to set formulaarray property

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2010
    Posts
    85

    long formula to vba macro - error 1004 unable to set formulaarray property

    This is a follow up question to my question here:

    http://www.excelforum.com/excel-prog...-a-column.html

    XOR LX suggested a formula to help with the issue, I then took that formula and recorded a macro to make it work in a macro and display the values in Column I. But the formula was longer than 255 characters in length so I followed the trick described here
    http://dailydoseofexcel.com/archives...rmulas-in-vba/

    But I am still getting the Unable to set the FormulaArray Error - RunTime Error 1004.

    Can someone please look at my code and help me figure out the issue? I will really appreciate any help or pointers. This is the code I have so far.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: long formula to vba macro - error 1004 unable to set formulaarray property

    How you have split up your formula is not correct, the string "first" ends in a comma, it needs to work as a complete formula with a function such as first() replace the second part.

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: long formula to vba macro - error 1004 unable to set formulaarray property

    Thanks yudlugar.
    I have been banging my head trying to split the formula so that it makes sense :-( but have been unsuccessful so far !

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: long formula to vba macro - error 1004 unable to set formulaarray property

    Hi,

    I had a go at doing this, I don't think XOR LX's formula is correct. I get a "formula contains an error message" when I try to enter it.

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: long formula to vba macro - error 1004 unable to set formulaarray property

    I posted a macro solution in your other thread.

+ 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] Runtime error 1004 Unable to set the name property of the font class
    By fairtradder1958 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-05-2012, 04:18 PM
  2. Replies: 0
    Last Post: 02-17-2012, 07:12 PM
  3. 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
  4. 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
  5. Unable to set the FormulaArray Property of the Range Class - Error 1004
    By manchmal2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2010, 05:08 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