A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
The way you are handling the array is wrong. I would recommend that you invest 1 hour in reading below to have an expert level knowledge of Arrays in VBA. After this, you would be able to handle array properly.
If after this reading, you stuck in some problem, post back for the help. I will provide that help.
The Complete Guide to Using Arrays in Excel VBA - https://excelmacromastery.com/excel-vba-array/
VBA Arrays And Worksheet Ranges -http://www.cpearson.com/excel/ArraysAndRanges.aspx