vba setting value of a multi-dimension array

Posted on 2009-02-23
Last Modified: 2013-11-25

i have an array (0 to 10000, 0 to 63) which i'm sorting based on a value in the second index

so i need to be able to switch values based on the first index. ie Array(0) = Array(1) and this would take all values that have 1 as the first index. This is possible in other languages but gives me a 'subscript out of range' error in vba.

is there a way around this?

Thanks in advance,

Question by:alzzz
    LVL 13

    Expert Comment

    LVL 13

    Accepted Solution


    Author Closing Comment

    thanks alot
    LVL 13

    Expert Comment

    Welcome and thanks for the grade :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now