How do I find out how many Columns and Rows in a Selection (the dimension of that Range) in VBA?
Thanks
How do I find out how many Columns and Rows in a Selection (the dimension of that Range) in VBA?
Thanks
Selection.Rows.Count Selection.Columns.Count
Also if you want to know the first row/column:
Selection(1, 1).Row Selection(1, 1).Column