+ Reply to Thread
Results 1 to 11 of 11

Can an array formula be included in VBA code?

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

    Can an array formula be included in VBA code?

    I want to include the following array formula in my code but get an object defined error?

    Please Login or Register  to view this content.
    Thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

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

    Please Login or Register  to view this content.
    Last edited by AndyLitch; 04-09-2013 at 04:32 AM.
    Elegant Simplicity............. Not Always

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

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

    Thanks Andy but the AT3 part of the formula remains absolute and it needs to be relative?

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

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

    The only thing i can think of then is to write the formula to AV3 and paste it down the column ??

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

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

    This is the code I am trying to use but is not working?

    Please Login or Register  to view this content.
    Thanks in advance

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

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

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

    Please Login or Register  to view this content.
    Last edited by Aland2929; 04-09-2013 at 03:06 PM.

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

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

    The error message is :Method range of Object Global failed

    Thanks in advance

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

    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

  9. #9
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

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

    Try this

    Please Login or Register  to view this content.

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

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

    Thanks for your response Andy. I get the following error message relating to the last line of code:

    [Object does not support this property or method]

    Thanks in advance

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

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

    I would appreciate any help with this as I have not been able to resolve it.

    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