+ Reply to Thread
Results 1 to 2 of 2

Unable to set Formula Array property of the range class

Hybrid View

  1. #1
    Registered User
    Join Date
    03-10-2014
    Location
    Mumbai
    MS-Off Ver
    Excel 2010
    Posts
    27

    Unable to set Formula Array property of the range class

    Hi guys,

    I need your help. I am doing some data cleaning and I have multiple columns, each with unique formulas. I recorded each column's execution as separate macros.

    I'm having trouble while running this macro which I recorded. I get an error saying " Unable to set formulaArray property of the range class". Can somebody tell me whats wrong? or have an alternate code in vba?


    Range("P2").Select
        Selection.FormulaArray = _
            "=IF(SUM(LEN(RC[-1])-LEN(SUBSTITUTE(RC[-1],{1,2,3,4,5,6,7,8,9,0},"""")))=8,SUBSTITUTE(TEXT(LEFT(INT(NPV(-0.9,,IFERROR(MID(LEFT(RC[-1],MIN(IFERROR(SEARCH(CHAR(ROW($65:$90)),RC[-1],MIN(FIND({0,1,2,3,4,5,6,7,8,9},RC[-1]&""0123456789"",1))),1000))),1000-COLUMN(R2),1)%,""SNNA""))),9),REPT(""0"",8)),""0000000"",""pN Ns""),SUBSTITUTE(TEXT(LEFT(INT(NPV(-0.9,,IFERROR(MID(LEFT(RC[-1],MIN(IFERROR(SEARCH(CHAR(ROW(R65:R90)),RC[-1],MIN(FIND({0,1,2,3,4,5,6,7,8,9},RC[-1]&""0123456789"",1))),1000))),1000-COLUMN(R2),1)%,""SNNA""))),9),REPT(""0"",7)),""0000000"",""pN Ns""))"
        Selection.AutoFill Destination:=Range("P2:P40000")
        Range("P2:P40000").Select
    End Sub

    Any help is appreciated.

    Thanks,
    Chippi

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Unable to set Formula Array property of the range class

    Hi,

    Would you copy and paste here the formula from the workbook please.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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 stockgoblin42 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2013, 09:45 AM
  2. 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
  3. Unable to set hidden property of the Range class
    By Andrew Kennerley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2011, 04:34 PM
  4. Unable to set the hidden property of the range class
    By Christian411 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2009, 11:48 AM
  5. Replies: 2
    Last Post: 10-17-2005, 04:05 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