- ©«¤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
|
¼Ï¯Ãªº¤è¦¡§Ú¤£·|, ©Ò¥H´N¸ÕµÛ¥Î¤ñ¸û´¶³qªº¤è¦¡¨Ó¹F¦¨ :
Sub nn()
Dim sStr$, sDate$
Dim iRow%, iI%
Dim vDate
Dim oD As Object
Set oD = CreateObject("Scripting.Dictionary")
iRow = [A65535].End(xlUp).Row
For iI = 2 To iRow
oD(CStr(Cells(iI, 1))) = oD(CStr(Cells(iI, 1))) + Cells(iI, 3)
Next iI
vDate = InputBox("½Ð¿é¤Jn¬d¸ßªº¦¬³æ¤é´Á : ", "¿é¤J¦¬³æ¤é´Á")
For iI = 2 To iRow
If Trim(CStr(Cells(iI, 4))) = Trim(CStr(vDate)) Then
If sDate <> CStr(Cells(iI, 1)) Then
sStr = sStr + Chr(10) + CStr(Cells(iI, 1)) + " : " + CStr(oD(CStr(Cells(iI, 1))))
sDate = CStr(Cells(iI, 1))
End If
End If
Next iI
MsgBox "¦¬³æ¤é´Á : " + vDate + " ªº¼Æ¶q" + sStr
End Sub |
|