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

¥[Á`°ÝÃD

¨º§Ú·Q¦b°Ý¤@¤U¤j¤j~
s = [A65536].End(xlUp).Row ~¬O°»´úAÄæ³Ì«á¤@¦C¼Æ¦r
°²³]§Ú¤µ¤Ñ­n°»´úBÄæ¦@¦³´X¦Cªº¸Ü~
­n«ç»ò¼g©O?

TOP

·PÁ¤j¤j~±ßÂI¨Ó¸Õ¸Õ¬Ý^^

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

³]¤@­Ó«ö¶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

        ÀR«ä¦Û¦b : ·O´d¨S¦³¼Ä¤H¡A´¼¼z¤£°_·Ð´o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD