Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

vba setting value of a multi-dimension array

Posted on 2009-02-23
4
Medium Priority
?
284 Views
Last Modified: 2013-11-25
Hi,

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,

Alex
0
Comment
Question by:alzzz
  • 3
4 Comments
 
LVL 13

Expert Comment

by:hiteshgoldeneye
ID: 23710494
0
 
LVL 13

Accepted Solution

by:
hiteshgoldeneye earned 2000 total points
ID: 23710522
0
 

Author Closing Comment

by:alzzz
ID: 31550036
thanks alot
0
 
LVL 13

Expert Comment

by:hiteshgoldeneye
ID: 23710754
Welcome and thanks for the grade :)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

577 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