I need to count the number of rows in a non-contiguous range, such as: “C13, D17:E18, F22, G25, C29:F33”
If I select those cells on my worksheet using Ctrl and the left mouse button, and then run the following code:
Dim Rng As Range
Set Rng = Selection
Debug.Print Rng.Rows.Count...