+ Reply to Thread
Results 1 to 3 of 3

WorkSheet Function with Multi Dimensional Array

  1. #1
    Registered User
    Join Date
    11-23-2009
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    32

    WorkSheet Function with Multi Dimensional Array

    Hi to all

    I'm having troubles understanding how to use a Multi Dimensional Array to feed a worksheet function. I'm trying to use the SumXMY2 function like this:
    Please Login or Register  to view this content.
    I wanted to use the first and second dimension of MyArray to feed the SumXMY2.
    Can anyone tell me please if this is possible?
    The above code not my real case, I'm not filling the array, I'm using GetRows to retrieve and array from a DAO recordset.

    Thanks in advance.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: WorkSheet Function with Multi Dimensional Array

    You can use Index to reference specific "rows"/"columns" of your 2d Array

    Please Login or Register  to view this content.
    see the help files re: WorksheetFunction.Index method re: usage (and use of 0 for ex.)

  3. #3
    Registered User
    Join Date
    11-23-2009
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: WorkSheet Function with Multi Dimensional Array

    Thanks a lot DonkeyOte, that works great.

+ 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