ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó¥uŪ¨ú¨ì¿z¿ï¨ìªº¼Æ¶q¤Îª÷ÃB

[µo°Ý] ¦p¦ó¥uŪ¨ú¨ì¿z¿ï¨ìªº¼Æ¶q¤Îª÷ÃB

¦p¦ó¥uŪ¨ú¨ì¿z¿ï¨ìªº¼Æ¶q¤Îª÷ÃB.rar (18.41 KB)

·í·Æ¹«¿ï¨úÄ«ªG(²Ä2¦C~²Ä4¦C)
ÂI¼Æ¶qªºµ²ªG¦p¦óÅܦ¨11
ÂIª÷ÃBªºµ²ªG¦p¦óÅܦ¨70

§Æ±æ¯à¥uŪ¨ú¿z¿ï¨ìªº¼Æ¶q¤Îª÷ÃB
For Each Cell In Selection
       s = s + Cells(Cell.Row, "B")
Next Cell

·PÁ«e½ú­ÌÆ[¬Ý¡C

Áöµ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

TOP

¥»©«³Ì«á¥Ñ av8d ©ó 2025-1-8 21:28 ½s¿è

¦^´_ 2# catbears


ÁÂÁ«e½ú¡A¨ü¯q¨}¦h¡A¥¿¬O§Ú­nªº¡A²`¨è¾Ç²ß¤FSubtotal¨ç¼Æªº§®¥Î¡C

½Ð°Ý«e½ú¬O§_ÁÙ¦³¯à§PÂ_©Ò¿ïªºÀx¦s®æ¬O§_¬°ÁôÂæCªº¥\¯à?ÁÂÁÂ

¦]¬°§Ú¦³®É­Ô¤£·|¥h¨Ï¥Î¿z¿ï¥\¯à¡A§Æ±æ¯à°µ¦b¦P­Ó«ö¶s¸Ì¡C

TOP

        ÀR«ä¦Û¦b : ¡i»X½ªªº¦Û¥Ñ¡j¤H±`¦b¤°»ò³£¥i¥H¦Û¥Ñ¦Û¦bªº®É­Ô¡A«o³Q³oºØÀH¤ß©Ò±ýªº¦Û¥Ñ»X½ª¡AµêÂY®É¥ú¦Ó²@µLıª¾¡C
ªð¦^¦Cªí ¤W¤@¥DÃD