VBA选择区域请教

2025-02-27 04:06:18
推荐回答(2个)
回答1:

Private Sub CommandButton1_Click()
MsgBox Selection.Row + Selection.Rows.Count - 1
End Sub

回答2:

Selection.Item(Selection.Count).Row