You can get the last cell in Excel using the following line of VBA code: ActiveCell.SpecialCells(xlLastCell).Select However if your dataset was modified (specifically, if you deleted rows), then doing that won’t get the right value. It’ll return what the value was before the data was modified. Instead, I use the…