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

¥Hµù¸Ñ¤º®e¥[Á`

¥Hµù¸Ñ¤º®e¥[Á`

¦U¦ì«e½ú§A­Ì¦n!
Sub Ex()
        [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)
        If ZZ = 0 Or ZZ = "" Then GoTo Ag
        [CR2] = ZZ
        [CR1] = 71
End Sub
         °ÝÃD¦pªþÀÉ»¡©ú
         ½Ðª¾¹Dªº«e½ú,¤£§[½ç±ÐÁÂÁ¦A¤T!!

LeoV72.rar (13.55 KB)

¦^´_ 1# myleoyes
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim ZZ, S, MySum As Integer, E
  4.     [CR1:CR30] = ""
  5.     [CR3] = "¦WºÙ"
  6.     [CR4] = "±`ºA"
  7.     [CR5] = "ÃB¥~"
  8.     [CR6] = "¯S§O"
  9.     [CR7] = "¸É§UÃB"
  10. Ag:
  11.     ZZ = Application.InputBox("¿ï¨ú¦WºÙ", " ½Ð¿ï¨úCRÄæ¦WºÙ", "¸É§UÃB", Type:=8 + 2)
  12.     'VBAªº»¡©ú: Type ¥i¬°¥H¤W¤¹³\­Èªº©M¡C¨Ò¦p¡A¹ï¥i¿é¤J¤å¦r©M¼Æ¦ì¿é¤J¤è¶ô¡A¥i±N Type ³]©w¬° 1 + 2¡C
  13.     'Type:=8 + 2: ¦]ª½±µ«ö¤UInputBox®É¬°¤å¦r ³]©wType:=8 ·|¦³¿ù»~
  14.     If ZZ = 0 Or ZZ = "" Then GoTo Ag
  15.     [CR2] = ZZ
  16.     S = Split([M79].NoteText, Chr(10))  'µù¸Ñ¤å¦rÂà¤J°}¦C
  17.     For Each E In S
  18.         If InStr(E, ZZ) Then MySum = MySum + Val(Mid(E, InStr(E, ZZ) + Len(ZZ)))
  19.     Next
  20.     [CR1] = MySum
  21. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# GBKEE
¨}®v!ÁÂÁÂ!!¦]¬°¤p§Ì¨S¦³¸ÑÄÀ²M·¡
     ©Ò¥Hµ{¦¡¥u¹ï¤@¥b?
     ¦]¬°¦WºÙªº²M³æ¬O­n¥Ñµ{¦¡
     ¨Ì¾Úµù¸Ñ¤º®e¦Û°Ê«Ø¥ßªº
     ¦Ó«D¤â°Ê[CR4] = "±`ºA",[CR5] = "ÃB¥~"..µ¥µ¥
     ½Ð¦A³Â·Ð±Ð¾É¨¯­WÅoÁÂÁ¦A¤T!!

TOP

¦^´_ 3# myleoyes
  1. Sub nn()
  2. Set d = CreateObject("Scripting.Dictionary")
  3. d("¦WºÙ") = ""
  4. With Range("M79").Comment
  5. mystr = .Text
  6. ar = Split(mystr, Chr(10))
  7. For Each a In ar
  8.    b = Split(a, " ")
  9.    x = b(0): y = b(1): z = b(2)
  10.    s = d.Count
  11.    If IsEmpty(d(y)) Then ActiveSheet.Cells(3 + s, "CR").Name = y
  12.    d(y) = d(y) + Val(z)
  13. Next
  14. End With
  15. [CR3].Resize(d.Count, 1) = Application.Transpose(d.keys)
  16. 10
  17. asw = Application.InputBox("¿ï¨ú¦WºÙ", " ½Ð¿ï¨úCRÄæ¦WºÙ", "¸É§UÃB", Type:=8)
  18. If d.exists(asw) = False Then GoTo 10
  19. [CR2] = asw: [CR1] = d(asw)
  20. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 4# Hsieh
°¸¹³«e½ú!°¸¹³´N¬O°¸¹³ªGµM§Q®`ÁÂÁ¦A¤T!!

TOP

        ÀR«ä¦Û¦b : ¬°¤H³B¥@­n¤p¤ß²Ó¤ß¡A¦ý¤£­n¡u¤p¤ß²´¡v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD