Hi Shifus,
I have a little problem trying to set up a dynamic array in VBA, tried googling but did not manage to find any solution. Hope someone can help or guide me in the right direction.
I need to set up a dynamic array consisting of:
1) Sheet(A) to Sheet(G) and <--Variable
2) Sheet(Y) and (Z) <--Constant
Problem is I may not always have Sheet(A) to Sheet(G), it may be Sheet(A), Sheet(B) and Sheet(G) only and Sheet(Y) and (Z) or Sheet(C), Sheet(D) and Sheet(E) only and Sheet(Y) and (Z).
The reason for setting up a dynamic array is because I need to copy them together into a new workbook and I have to copy them together becoz there are formulas in (Y) and (Z).
Thank you in advance!
I have a little problem trying to set up a dynamic array in VBA, tried googling but did not manage to find any solution. Hope someone can help or guide me in the right direction.
I need to set up a dynamic array consisting of:
1) Sheet(A) to Sheet(G) and <--Variable
2) Sheet(Y) and (Z) <--Constant
Problem is I may not always have Sheet(A) to Sheet(G), it may be Sheet(A), Sheet(B) and Sheet(G) only and Sheet(Y) and (Z) or Sheet(C), Sheet(D) and Sheet(E) only and Sheet(Y) and (Z).
The reason for setting up a dynamic array is because I need to copy them together into a new workbook and I have to copy them together becoz there are formulas in (Y) and (Z).
Thank you in advance!
