![]() |
#1
|
|||
|
|||
![]()
Hello,
I am using this line to get the last row and column used: Code:
Set lastRow = ws.Cells.SpecialCells(xlCellTypeLastCell).EntireRow Set lastColumn = ws.Cells.SpecialCells(xlCellTypeLastCell).EntireColumn I am getting the last row so that I can use it as a range and then save it to an array so I can loop thru: Code:
Set lastRow = ws.Cells.SpecialCells(xlCellTypeLastCell).EntireRow Set lastColumn = ws.Cells.SpecialCells(xlCellTypeLastCell).EntireColumn Set rRange = Range(Cells(1, 1), Cells(LastRow, LastCol)) ' Copy the Range to an Array myarray2 = rRange For r = 3 To UBound(myarray2) Last edited by abenitez77; 04-05-2019 at 04:38 AM. |
|