hi
Need more information about the array() cells() property. Can i use both array & cells together ?
example
increased step by step
vol 1
arr = Array(cells(1,1)),cells(1,2),cells(1,3))
vol 2 with combine range(cell())
arr = Array(Range(Cells(1, 1), Cells(1, 11)),Range(Cells(2, 1), Cells(Cells(2,11))
vol 3 with xl end up,down,left,right
arr = Array(Range(Cells(1, 1), Cells(1, 11)),Range(Cells(2, 1), Cells(Cells(Rows.Count, 1).End(xlUp).Row, 11))
vol 4 with variables
var1 = Cells(1, 11).Column
var2 = Cells(1, 1).End(xlToRight).Column
var3 = Cells(1, 1).End(xlDown).Row
var4 = Cells(1, 1).End(xlToRight).Column - 8
Set rng1 = Range(Cells(1, 1), Cells(1, 11))
Set rng2 = Range(Cells(2, 1), Cells(Cells(Rows.Count, 1).End(xlUp).Row, 11))
Set rng3 = Range(Cells(1, var4), Cells(1, var2))
Set rng4 = Range(Cells(2, var4), Cells(var3, var2))
arr = Array(rng1,rng2,rng3,rng4)
vol 5 combine with 2 difrent sheets and 2 array
arr1 = Array(rng1,rng2,rng3,rng4)
arr2 = Array(Range(Cells(1, 1), Cells(1, 11)),Range(Cells(2, 1), Cells(2, 11)),Range(Cells(1, 15), Cells(1, 15)),Range(Cells(2, 15), Cells(2, 15))
for i= array low to high
with sh1
arr1(i).copy
end with
with sh2
'copy sh1 arr1 range after sh2 arr2 area paste
arr2(i).paste
end with
next
....
thx everybody