Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Union method for Range Object
I am attempting to fill an array with a non-contiguous range. I have figured
out several ways to do this but each has its limitations. Using the following, the range object created has a single column (even though the reference includes multiple columns). Dim X_in As Range, X As Variant, i, j Set X_in = Application.Range(Sheet1!$A$1:$A$6,Sheet1!$C$1:$D$ 6) X = X_in For j = 1 To UBound(X, 2) For i = 1 To UBound(X, 1) Cells(i, j + 10) = X(i, j) Next i Next j I have tried the Union method, areas, etc. Thanks, Chad |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Method 'Range' of object '_global' failed | Excel Discussion (Misc queries) | |||
What does XLS VB Method 'Range of object' _Global failed mean? | Excel Programming | |||
Problem is using any method of Range Object | Excel Programming | |||
Method Range of object global failed | Excel Programming | |||
Method 'Range' of object '_Global' failed | Excel Programming |