ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Counting Highlighted Rows (https://www.excelbanter.com/excel-programming/436273-re-counting-highlighted-rows.html)

Phil H[_2_]

Counting Highlighted Rows
 
Works great. Thanks, Luke.

"Luke M" wrote:

Sub HowMany()
MsgBox Selection.Rows.Count
End Sub
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Phil H" wrote:

I am highlighting rows beyond what I see on screen. Can someone give me a
macro that counts the number of highlighted rows.


Rick Rothstein

Counting Highlighted Rows
 
I'm guessing, then, that you will never have selections composed of
non-contiguous areas. For future consideration, you should really mention
such things in your questions when you ask them... the more information you
give about your set up and what you want to do, the better able we are to
give you solutions that do what you are looking for.

--
Rick (MVP - Excel)


"Phil H" wrote in message
...
Works great. Thanks, Luke.

"Luke M" wrote:

Sub HowMany()
MsgBox Selection.Rows.Count
End Sub
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Phil H" wrote:

I am highlighting rows beyond what I see on screen. Can someone give
me a
macro that counts the number of highlighted rows.




All times are GMT +1. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com