- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# myleoyes
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim ZZ, S, MySum As Integer, E
- [CR1:CR30] = ""
- [CR3] = "¦WºÙ"
- [CR4] = "±`ºA"
- [CR5] = "ÃB¥~"
- [CR6] = "¯S§O"
- [CR7] = "¸É§UÃB"
- Ag:
- ZZ = Application.InputBox("¿ï¨ú¦WºÙ", " ½Ð¿ï¨úCRÄæ¦WºÙ", "¸É§UÃB", Type:=8 + 2)
- 'VBAªº»¡©ú: Type ¥i¬°¥H¤W¤¹³\Ȫº©M¡C¨Ò¦p¡A¹ï¥i¿é¤J¤å¦r©M¼Æ¦ì¿é¤J¤è¶ô¡A¥i±N Type ³]©w¬° 1 + 2¡C
- 'Type:=8 + 2: ¦]ª½±µ«ö¤UInputBox®É¬°¤å¦r ³]©wType:=8 ·|¦³¿ù»~
- If ZZ = 0 Or ZZ = "" Then GoTo Ag
- [CR2] = ZZ
- S = Split([M79].NoteText, Chr(10)) 'µù¸Ñ¤å¦rÂà¤J°}¦C
- For Each E In S
- If InStr(E, ZZ) Then MySum = MySum + Val(Mid(E, InStr(E, ZZ) + Len(ZZ)))
- Next
- [CR1] = MySum
- End Sub
½Æ»s¥N½X |
|