+ Reply to Thread
Results 1 to 7 of 7

Jagged Array vba

Hybrid View

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

    Re: Jagged Array vba

    I am curious what your research turned up that you found difficult to understand. I would expect something like this?
    Sub test()
    stop 'stop statement enters debug mode so you can step through the function and examine variables as stuff happens.
    Dim varproject(1 To 3) As Variant
    varproject(1) = Array("a", "b", "c")
    varproject(2) = Array("d")
    varproject(3) = Array("e", "f")
    For i = 1 To 3
    Debug.Print varproject(i)(0)
    Next i
    End Sub
    Note that I can control the lower limit for the outer varproject() array, but the inner "variants containing arrays" will default to a 0 based array, which is why I used 0 as the index for the first element of each inner array.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  2. #2
    Registered User
    Join Date
    07-12-2018
    Location
    In the land of TBHQ
    MS-Off Ver
    2013
    Posts
    51

    Re: Jagged Array vba

    Very nice. They are a couple of links that address the problem. I'm unable to post the links since I'm new to the board.
    I tried to post the question as simple as possible to get a better understanding of the basics and you did just that, explained it in a very easy way for me to understand. I really appreciate it.
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Paste "Jagged Array" without looping
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 04-16-2017, 08:00 PM
  2. [SOLVED] Jagged Arrays: Syntax Clarificatiuon
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2016, 05:46 PM
  3. [SOLVED] Jagged Array Excel Formula?
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-11-2015, 07:45 PM
  4. [SOLVED] Print to worksheet and Jagged Array
    By abousetta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-07-2012, 07:50 PM
  5. Get error when declaring a jagged array?
    By HammerTime in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-13-2010, 11:16 PM
  6. Jagged Pie Charts
    By Sionos in forum Excel General
    Replies: 0
    Last Post: 09-25-2007, 05:54 AM
  7. [SOLVED] soften jagged edges of pie charts
    By zen in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-17-2005, 02:05 PM

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