YasserKhalil
Well-Known Member
Hello everyone
I have sheet1 and sheet2 and I need to store values from Sheet1.range("A2:A" & LastRow) .. LastRow here is 15 and at the same time add the values of Sheet2.range("A2:A" & LastRow) .. LastRow here is 20 ...
I can store only values from one sheet like that
How to add Sheet2.Range("A2:A" & Cells(Rows.Count, 1).End(xlUp).Row).Value) to form one array for the values from the two sheets?
I have sheet1 and sheet2 and I need to store values from Sheet1.range("A2:A" & LastRow) .. LastRow here is 15 and at the same time add the values of Sheet2.range("A2:A" & LastRow) .. LastRow here is 20 ...
I can store only values from one sheet like that
Code:
myData = Sheet1.Range("A2:A" & Cells(Rows.Count, 1).End(xlUp).Row).Value