- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 62
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-3-13
               
|
¦^´_ 1# hong912 - Private Sub CommandButton1_Click()
- Dim m%, n$
- Set d = CreateObject("Scripting.Dictionary")
- fs = Application.GetOpenFilename("¿n¤ÀªíExcel Files (*.xls*), *.xls*", , "½Ð¿ï¨ú¿n¤ÀªíÀÉ®×")
- With Workbooks.Open(fs)
- m = InputBox("¿é¤J¤ë¥÷", , 10)
- n = InputBox("¿é¤J½s¸¹", , "A1")
- With .Sheets(1)
- For Each a In .Range(.[A2], .[A2].End(xlDown))
- d(a & a.Offset(, 2)) = d(a & a.Offset(, 2)) + a.Offset(, 6)
- Next
- End With
- .Close 0
- End With
- [F2] = d(m & n)
- End Sub
½Æ»s¥N½X |
|