+ Reply to Thread
Results 1 to 5 of 5

Unknown number of arrays as argument to VBA function

Hybrid View

  1. #1
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,526

    Re: Unknown number of arrays as argument to VBA function

    When you call the function, will the vectors always be consecutive (B,C,D,E...) or can they be required to be consecutive? If so, then you could reduce all of your one dimensional array arguments into a single 2 dimensional array:
    function smatrix_C(arr1 as variant) as variant
    ...
    end function
    called as =smatrix_c(b2:f523)

  2. #2
    Registered User
    Join Date
    11-14-2012
    Location
    world
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Unknown number of arrays as argument to VBA function

    Unfortunately no. The argument needs to be able to take none consecutive columns of data :S

+ 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