Selection's first and last row

  • Thread starter Thread starter Tim Coddington
  • Start date Start date
T

Tim Coddington

What is the best way to collect the first and last row numbers of a
currently selected area of a spreadsheet?
 
If selection.Areas.count = 1 then
firstRow = selection(1).Row
lastRow = selection(selection.count).row
End if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top