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

¥[Á`°ÝÃD

³]¤@­Ó«ö¶s
  1. Sub ¥[Á`()

  2. Dim sh As String '«Å§i¬°¦r¦ê«¬ºA
  3. sh = ActiveWorkbook.Sheets.Count '°»´ú¬¡­¶³¡¤ºªº¤u§@ªí¼Æ¶q
  4. For i = 1 To sh '±q²Ä¤@­Ó°µ¨ì³Ì«á¤@­Ó¤u§@­¶
  5. Sheets(i).Select
  6.     s = [A65536].End(xlUp).Row '°»´úAÄæ³Ì«á¤@¦C¼Æ¦r
  7.     '¥[Á`
  8.     Cells(s + 1, 4).Value = Application.WorksheetFunction.Sum(Range(Cells(1, 4), Cells(s, 4)))
  9.     Cells(s + 1, 4).Select
  10.         '¤W©³½u¥[¤UÂù©³½u
  11.     Selection.Borders(xlEdgeTop).LineStyle = xlContinuous
  12.     Selection.Borders(xlEdgeBottom).LineStyle = xlDouble
  13.      
  14. Next i
  15. End Sub
½Æ»s¥N½X
«ü©w¥¨¶°  ·d©w

TOP

¦^´_ 1# sky00264

³]¤@­Ó«ö¶s
  1. Sub ¥[Á`()

  2. Dim sh As String '«Å§i¬°¦r¦ê«¬ºA
  3. sh = ActiveWorkbook.Sheets.Count '°»´ú¬¡­¶³¡¤ºªº¤u§@ªí¼Æ¶q
  4. For i = 1 To sh '±q²Ä¤@­Ó°µ¨ì³Ì«á¤@­Ó¤u§@­¶
  5. Sheets(i).Select
  6.     s = [A65536].End(xlUp).Row '°»´úAÄæ³Ì«á¤@¦C¼Æ¦r
  7.     '¥[Á`
  8.     Cells(s + 1, 4).Value = Application.WorksheetFunction.Sum(Range(Cells(1, 4), Cells(s, 4)))
  9.     Cells(s + 1, 4).Select
  10.         '¤W©³½u¥[¤UÂù©³½u
  11.     Selection.Borders(xlEdgeTop).LineStyle = xlContinuous
  12.     Selection.Borders(xlEdgeBottom).LineStyle = xlDouble
  13.      
  14. Next i
  15. End Sub
½Æ»s¥N½X
«ü©w¥¨¶°
«ö¤U«ö¶s ·d©w!

TOP

¦^´_ 5# sky00264


    s = [A65536].End(xlUp).Row     ±qA65536©¹¤W§ä ¥ý¸I¨ìªº¦ì¸m
¬õ¦â³¡¤À   ­nBÄæ´N§ï¬°B65536     
¦pªGBÄæ³£¦³¼Æ­È  ¤¤¶¡³£¨S¦³ªÅ®æªº¹º  ¤]¥i¥H¨Ï¥Î  s =  [B1].End(xldown).Row        ·N«ä¬O ±qB1©¹¤U§ä
s³£¥i¥H¦Û¦æÅܤƠ   ¥i¥H©w¸q¬°§A¤ñ¸û¯à¿ëÃѪº¥N¸¹
¦Û¥Î¨®¤]¥i¥Hñ±b³á!
¤­¤d¤¸¥[ªoª÷¥[¤Jªo½c«áÁÙ¦^õX±z6200¤¸
ºÖ§Q©ô¨®¤Í·|power-want.com

TOP

        ÀR«ä¦Û¦b : ¦³¦h¤Ö¤O¶q´N°µ¦h¤Ö¨Æ¡A¤£­n¤ß¦sµ¥«Ý¡Aµ¥«Ý¤~·|¸¨ªÅ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD