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

[µo°Ý] ¦p¦ó§Q¥ÎVBA«öÁä¡A¨Ó§ä¥X¹H¤Ï³W«hªº¸¹½X¡C

¦^´_ 3# ­ã´£³¡ªL


   
­ã¤j¦Ò¶qªº¬O¡Aªº½T¦bHÄ檽±µ¥X²{´£¥Ü¤ñ¸û¤è«K¡Aµ{¦¡­n´X¤Ñ«á¤~¯à´ú¸Õ¡A¥ýÁÂÁ­ã¤j¤F¡I

TOP

¦b¢ÖÄæ¦C¥X¿ù»~°T®§¡A
¥ÎMSGBOX¦ê¥X¤@¤j°ï¡AÃö³¬«á§Ñ¥ú¥ú¡A¥Î³B¤£¤j¡I¡I¡I

Sub ÀË´ú()
Dim xD, xD1, R&, T$, TM1&, TM2&, i&
R = [C65536].End(xlUp).Row
[H:H].ClearContents
Set xD = CreateObject("Scripting.Dictionary")
Set xD1 = CreateObject("Scripting.Dictionary")
For i = 2 To R
¡@¡@T = Range("C" & i): TM1 = Int(Range("E" & i)): TM2 = Int(Range("G" & i))
¡@¡@If T = "" Or TM1 = 0 Or TM2 = 0 Then GoTo 101
¡@¡@If TM1 < xD(T) Then xD1(T & TM1) = "¨ì´Á¤é¥¼±Æ§Ç": GoTo 101
¡@¡@xD(T) = TM1
¡@¡@If xD(T & TM2) = 0 Then xD(T & TM2) = TM1
¡@¡@If xD(T & TM2) <> TM1 Then xD1(T & TM2) = "¨ì´Á¤é²§±`": GoTo 101
101: Next
¡@
For i = 2 To R
¡@¡@T = Range("C" & i):  TM1 = Int(Range("E" & i)): TM2 = Int(Range("G" & i))
¡@¡@If xD1(T & TM1) <> "" Then Range("H" & i) = xD1(T & TM1)
¡@¡@If xD1(T & TM2) <> "" Then Range("H" & i) = xD1(T & TM2)
102: Next
End Sub


¡e»s³y¤é¡f¥²¶·¥ý±Æ§Ç¡A¦P½s¸¹ªº¡e¨ì´Á¤é¡f¤ñ¤W­±ªº¤p¡A´Nºâ²§±`¡I¡I

TOP

¸Ô²Ó°ÝÃD¤º®e       
³W«h1. ¦P¼Ëªº¸¹½X¤¤¡A¦bGÄæ¬Û¦Pªº»s³y¤é´Á¤¤¡AEÄ檺¨ì´Á¤é¤]¥²¶·¬Û¦P¡F       
³W«h2. ¦P¼Ëªº¸¹ ...
RCRG µoªí©ó 2015-12-11 11:38



    ¤U¥b³¡EÄ檺¨ì´Á¤é§Ñ°O¤W°Ï¶ôÃC¦â¤F....XD

TOP

        ÀR«ä¦Û¦b : ¦³¤ß´N¦³ºÖ¡A¦³Ä@´N¦³¤O¡A¦Û³yºÖ¥Ð¡A¦Û±oºÖ½t¡C
ªð¦^¦Cªí ¤W¤@¥DÃD