Take a look at the following code. What my problem is is that I can\'t figure out how to redimension the n integer and the b integer. What I\'m doing is the array sent1 is alr
The problem that you have is that you cannot change the rank (dimensions) of an array with a redim
statement.
dim sent()
creates a 1-rank array, redim sent2(x, y)
assumes a 2-rank array. Try dim sent(,)
.
Also, it will improve performance (and code robustness) if you use
dim sent1() as string
dim sent2(,) as string