- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¦^´_ 1# hong912
¥»¨Ó¥Î xlsx ®æ¦¡Àɮ׹갵¥X¨Ó¤F,
¦ýn¤W¶Ç¥N½X«e«o¬ðµMµo²{Àɮ׸̪ºµ{¦¡½X¥þ³¡¬Ý¤£¨£(¬Æ¦Ü³sÀɮ׳£ÅÜ°ßŪ)¤F,
©Ò¥H¥u¯à§ï¥Î¦Û¤vª©¥»ªº xls Àɮ׮榡«°µ«á¤W¶ÇÅo:- Private Sub cbCal_Click()
- Dim lRows As Long, lRow As Long
- Dim wbData As Workbook
- Dim dTar
-
- Set dTar = CreateObject("Scripting.Dictionary")
- Set wbData = Workbooks.Open(Me.Parent.Path & "\¿n¤Àªí.xlsx", , True)
-
- With wbData.Application.Sheets("¤u§@ªí1")
- lRows = .Cells(Rows.Count, 1).End(xlUp).Row
- For lRow = 3 To lRows
- dTar(CStr(.Cells(lRow, 1) & "-" & .Cells(lRow, 3))) = dTar(CStr(.Cells(lRow, 1) & "-" & .Cells(lRow, 3))) + CLng(.Cells(lRow, 7))
- Next lRow
- End With
-
- With Me
- lRows = .Cells(Rows.Count, 1).End(xlUp).Row
- For lRow = 3 To lRows
- .Cells(lRow, 6) = dTar(CStr(.Cells(lRow, 1) & "-" & .Cells(lRow, 2)))
- Next lRow
- End With
- wbData.Close
- End Sub
½Æ»s¥N½X
pºâªí-A.zip (11.09 KB)
|
|