Results 1 to 4 of 4

VBA Functions returning Arrays

Threaded View

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    Mauitius
    MS-Off Ver
    Excel 2010
    Posts
    8

    Post VBA Functions returning Arrays

    Hi,

    Actually im having problem with the following code, im returning an array using a function but only one value is displayed. Pleas Help


    Function retcol() As Variant
    Dim x(3) As Integer
    x(1) = 1
    x(2) = 2
    x(3) = 3
    retcol = Array(x(1), x(2), x(3))
    End Function
    Last edited by Leith Ross; 07-30-2013 at 06:04 PM. Reason: Added Code Tags

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Returning arrays from arrays....
    By Magsy in forum Excel General
    Replies: 2
    Last Post: 12-13-2011, 09:09 AM
  2. Function returning arrays
    By axecel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2010, 01:16 AM
  3. Returning arrays from custom worksheet functions in xll files
    By JacksonRJones in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2006, 01:50 PM
  4. [SOLVED] Can't figure out passing and returning arrays
    By Dave B in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2005, 08:45 PM
  5. [SOLVED] RTD returning arrays
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2005, 07:06 PM

Tags for this Thread

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