Copy a range of cells, defined on execution, to an array
问题 I am trying to copy a range of cells from a range of rows from two workbooks. This information is used to do a comparison of the contents of both workbooks rows by ID. The first solution I tried involved cell by cell "binary" comparison. This works for worksheets with few rows: For i = 2 To LastSheetRow Set FoundCell = Workbooks(WorkbookA).Sheets(SheetNameFromArray).Range("A:A").Find(What:=Workbooks(WorkbookB).Sheets(SheetNameFromArray).Cells(i, 1).Value) If Not FoundCell Is Nothing Then