本例显示选择的行数。

MsgBox Selection.Rows.Count