Link to home
Create AccountLog in
Avatar of MirageSF
MirageSF

asked on

Load a two-dimensional array from two independent ranges

Hi,,

I know how to define arrays and two dimensional, and place data in them, however how do I preload two dimensional arrays using ranges from different parts of the sheet, i.e C8:C1000 and P8:P1000

Ta
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Bill Prew
Bill Prew

And I believe you can also do:

Dim rng1
rng1 = Union(Range("C8:C1000"), Range("P8:P1000"))

Open in new window


»bp
Not worth an objection, but I would have preferred an equal distribution of the points.


»bp