+ Reply to Thread
Results 1 to 11 of 11

Can an array formula be included in VBA code?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    858

    Re: Can an array formula be included in VBA code?

    I am getting an error on the 2nd row??

    Range("AV3:AV3").FormulaArray = "=SUM(COUNTIFS(J:J,AT3,C:C,ExcludeCT))"
    Range("AV3:AV3").Copy Range("AV3:AV & SecondLastRow - 1")
    Last edited by Aland2929; 04-09-2013 at 03:06 PM.

  2. #2
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    858

    Re: Can an array formula be included in VBA code?

    The error message is :Method range of Object Global failed

    Thanks in advance

  3. #3
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    858

    Re: Can an array formula be included in VBA code?

    I think the problem is with the Paste part of the code but I can't figure it out? Would appreciate some help.
    Thanks in advance

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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