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

[µo°Ý] ¸ß°Ýswitch case ªº¥Îªk

[µo°Ý] ¸ß°Ýswitch case ªº¥Îªk

§Ú¦³¤@¦ê¸ê®Æ »Ý­n¶i¦æ¤ñ¹ï

A¦C ¦³¬ù100µ§¸ê®Æ (¤£¤@©w³£¬O100µ§)
B¦C·Q§e²{ªº¸ê®Æ¬°
         ¨Ò1. A50Àx¦s®æ¤¤¦³¥X²{ '¥x¤¤'  «h B50 Àx¦s®æ´N±a¤J 1 (¥N¸¹)
         ¨Ò2. A63Àx¦s®æ¤¤¦³¥X²{ '°ª¶¯'  «h B63 Àx¦s®æ´N±a¤J 2 (¥N¸¹)

¤£ª¾¹D³o¼Ëªº°j°é ­n¦p¦ó¼¶¼g©O?!

Sub Test_Switch()
Dim xR As Range, J
For Each xR In Range([A1], [A65536].End(3))
¡@¡@J = xR
¡@¡@xR(1, 2) = Switch(J = "¥x¤¤", 1, J = "°ª¶¯", 2, J = "¥x¥_", 3, J = J, "")
Next
End Sub
¡@
¨Ì¸ê®Æ¼ËºA¦³«Ü¦h¤èªk¡ASwitch ¨Ã«D²Ä¤@¿ï¾Ü¡I
¡@

TOP

http://blog.xuite.net/hcm19522/twblog/342553261

TOP

¦^´_ 3# hcm19522


¢Ó¤j¡AÅwªï¥[¤J¡I¤S¦h¤F¦³¤O´©¤â¡I
¹w¯¬¡@¦³­Ó§Ö¼Öªº¤¤¬î¸`°²´Á¡ã¡ã

¦^µª®É­Y¯à¶K­Ó¤pªí®æ¤Î¤½¦¡¡A¥iª½±µ¨Ñ°Ñ¦Ò¡A«á¦A¥[¶Q³¡¸¨®æªº¸Ô²Ó¸ê®Æ¡A«h§ó¥[§¹¬ü¡I
·P®¦¡I

TOP

        ÀR«ä¦Û¦b : ­×¦æ­nô½t­×¤ß¡AÂǨƽm¤ß¡AÀH³B¾i¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD