Ok - I know a bunch of ways to find the last used cell in a column, but I want to find the last used row (checking ALL columns - or at least the first 20 columns - for data).
I tried using:
LastSDRow = Range("A63000:Z63000"
.End(xlUp).Row
but it only checks column "A". This works:
a = ShSD.UsedRange.Rows.Count
b = ShSD.UsedRange.Columns.Count
LastSDRow = ShSD.Cells.SpecialCells(xlCellTypeLastCell).Row
but it's too bulky. I want a one-liner! LOL
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
I tried using:
LastSDRow = Range("A63000:Z63000"
but it only checks column "A". This works:
a = ShSD.UsedRange.Rows.Count
b = ShSD.UsedRange.Columns.Count
LastSDRow = ShSD.Cells.SpecialCells(xlCellTypeLastCell).Row
but it's too bulky. I want a one-liner! LOL
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)