+ Reply to Thread
Results 1 to 10 of 10

Unable to set FormulaArray property of the Range class VBA

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Unable to set FormulaArray property of the Range class VBA

    Hi,

    I have recorded a macro that formats my report automatically. However, I encounter an error when running the macro "Unable to set FormulaArray property of the Range class". Here is the code with error that i encounter with
    Please Login or Register  to view this content.
    . I don't know how to write the code for this macro to work.

    I attached my report for your reference. I hope you can help me on this.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Unable to set FormulaArray property of the Range class VBA

    Can anyone help me with my code please. thansk

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Unable to set FormulaArray property of the Range class VBA

    Have you tried using the Macro Recorder to record you entering the array formula in the desired cell(s)?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Unable to set FormulaArray property of the Range class VBA

    Hi,

    Yes I did. But when i ran the code, I encountered the error as attached.
    Attached Images Attached Images

  5. #5
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Unable to set FormulaArray property of the Range class VBA

    It seems the problem with the array formula is the limitation of 255 characters. The work around I read to split the formula, but I can't figure it out how to do it. I hope someone helps me on this.

  6. #6
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Unable to set FormulaArray property of the Range class VBA

    Up. really need help on this. thanks

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Unable to set FormulaArray property of the Range class VBA

    you can shorten the names of your tables a lot to t_1, t_2 and so on then use this

    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  8. #8
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Unable to set FormulaArray property of the Range class VBA

    Quote Originally Posted by JosephP View Post
    you can shorten the names of your tables a lot to t_1, t_2 and so on then use this

    Please Login or Register  to view this content.

    Thanks! This works perfectly!

  9. #9
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Unable to set FormulaArray property of the Range class VBA

    Hello,

    Thank you for providing the code. It works perfectly.

    However, I need to rewrite the formula I wrote because it was flawed. I tried copying the code you provided me but I couldn't replicate your code. Here is the formula that I wrote:

    Please Login or Register  to view this content.
    I hope you can help me again to translate the formula into VBA code similar to what you did in the previous formula.
    Thank you in advance for your help.

  10. #10
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Unable to set FormulaArray property of the Range class VBA

    Quote Originally Posted by bambino86 View Post
    Hello,

    Thank you for providing the code. It works perfectly.

    However, I need to rewrite the formula I wrote because it was flawed. I tried copying the code you provided me but I couldn't replicate your code. Here is the formula that I wrote:

    Please Login or Register  to view this content.
    I hope you can help me again to translate the formula into VBA code similar to what you did in the previous formula.
    Thank you in advance for your help.
    Up! Need hep on the code

+ 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 bsquad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2017, 07:28 PM
  2. 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
  3. 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
  4. 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
  5. 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
  6. [SOLVED] Unable to set FormulaArray property of the Range class
    By tempest0123@gmail.com 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

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