- ©«¤l
- 9
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 59
- ÂI¦W
- 5
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 365
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2022-4-20
- ³Ì«áµn¿ý
- 2025-1-8
|
ÁöµM¸Ñªk¤£¤Ó¤@¼Ë¡A¦ýÀ|¸Õ¤@¤U
Private Sub CommandButton1_Click()
Dim Cell As Range, s As Integer
If Range("B2") <> "" Then
Range("B1").Select
suryou = ActiveCell.End(xlDown).Row
s = WorksheetFunction.Subtotal(9, Range("B2", "B" & suryou))
MsgBox s
End If
End Sub
Private Sub CommandButton2_Click()
Dim Cell As Range, s As Integer
If Range("C2") <> "" Then
Range("C1").Select
suryou = ActiveCell.End(xlDown).Row
s = WorksheetFunction.Subtotal(9, Range("C2", "C" & suryou))
MsgBox s
End If
End Sub |
|