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

¤@­Ó¸ê®Æ¿é¤J°ÝÃD

¤@­Ó¸ê®Æ¿é¤J°ÝÃD

¤j¤j­Ì, ¦w¦n
¤p§Ì¦³¤@¸ê®Æ¿é¤J°ÝÃD¨D§U, ½Ð¤j¤j­Ì¨ó§U, ªþ¶ÇÀÉ®×, ¤º¦³»¡©ú, ¥ý¦æÁ¹L¤j¤j­Ì.
¬¡­¶Ã¯1.rar (9.92 KB)

¥»©«³Ì«á¥Ñ luhpro ©ó 2013-10-8 23:33 ½s¿è

¦^´_ 1# ©P¤j°¶
Module
  1. Public dNum
½Æ»s¥N½X
ThisWorkbook
  1. Private Sub Workbook_Open()
  2.   Dim lTRow&
  3.   Dim shSou As Worksheet
  4.   
  5.   Set shSou = Sheets("¤u§@ªí1")
  6.   Set dNum = CreateObject("Scripting.Dictionary")
  7.   
  8.   With Sheets("¤u§@ªí2")
  9.     lTRow = 2
  10.     Do While .Cells(lTRow, 1) <> ""
  11.       dNum(CStr(.Cells(lTRow, 1))) = dNum(CStr(.Cells(lTRow, 1))) + .Cells(lTRow, 5)
  12.       .Cells(lTRow, 9) = dNum(CStr(.Cells(lTRow, 1)))
  13.       lTRow = lTRow + 1
  14.     Loop
  15.   End With
  16. End Sub
½Æ»s¥N½X
Sheets("¤u§@ªí1")
  1. Private Sub CommandButton1_Click()
  2.   Dim lSRow&, lTRow&, lTRows&
  3.   Dim shSou As Worksheet
  4.   
  5.   Set shSou = Sheets("¤u§@ªí1")
  6.   With Sheets("¤u§@ªí2")
  7.     lTRows = .Cells(Rows.Count, 1).End(xlUp).Row
  8.     For lSRow = 15 To 34
  9.       lTRow = lTRows + lSRow - 14
  10.       .Cells(lTRow, 1) = shSou.Cells(lSRow, 4)
  11.       .Cells(lTRow, 2) = shSou.Cells(lSRow, 6)
  12.       .Cells(lTRow, 3) = shSou.Cells(lSRow, 8)
  13.       .Cells(lTRow, 4) = shSou.Cells(lSRow, 10)
  14.       .Cells(lTRow, 5) = shSou.Cells(lSRow, 11)
  15.       dNum(CStr(.Cells(lTRow, 1))) = dNum(CStr(.Cells(lTRow, 1))) + .Cells(lTRow, 5)
  16.       .Cells(lTRow, 9) = dNum(CStr(.Cells(lTRow, 1)))
  17.       shSou.Cells(lSRow, 13) = dNum(CStr(.Cells(lTRow, 1)))
  18.     Next lSRow
  19.   End With
½Æ»s¥N½X
¬¡­¶Ã¯1-a.zip (17.76 KB)

TOP

¥»©«³Ì«á¥Ñ ©P¤j°¶ ©ó 2013-10-9 08:34 ½s¿è

¦^´_ 2# luhpro
¯u¤ß·PÁ¤j¤j, ¤w¸Õ¥Î, ¦A«×ÁÂÁÂ, ¯¬Ä@§Ö¼Ö..

TOP

        ÀR«ä¦Û¦b : ¤H¨ÆªºÁ}Ãø»PµZ¿i¡A´N¬O¤@ºØ¦ÒÅç¡C
ªð¦^¦Cªí ¤W¤@¥DÃD