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

[µo°Ý] VBA_¦p¦ó²¤Æ¦¹µ{¦¡½X¡CÁÂÁÂ!

[µo°Ý] VBA_¦p¦ó²¤Æ¦¹µ{¦¡½X¡CÁÂÁÂ!

¤p§Ì¥»ª©­º¦¸´£°Ý,½Ð¤j¤j­Ì½ç±Ð
µ{¦¡½X¦p¤U
Sub test()

    Sheets("aaa").Select
    Range("A1").Select
    k = Range(Selection, Selection.End(xlDown)).Count            '­pºâAÄæ¦ìµ§¼Æ

    For ii = 2 To k
    Range("P" & ii) = VBA.Replace(Range("P" & ii), "1", "¤@½Ò")
    Range("P" & ii) = VBA.Replace(Range("P" & ii), "2", "¤G½Ò")
    Range("P" & ii) = VBA.Replace(Range("P" & ii), "3", "¤T½Ò")
    Range("P" & ii) = VBA.Replace(Range("P" & ii), "4", "¥|½Ò")
    Range("P" & ii) = VBA.Replace(Range("P" & ii), "5", "¤­½Ò")
    Range("P" & ii) = VBA.Replace(Range("P" & ii), "6", "A½Ò")
    Range("P" & ii) = VBA.Replace(Range("P" & ii), "7", "B½Ò")
    Range("P" & ii) = VBA.Replace(Range("P" & ii), "8", "C½Ò")
    Next ii                                                                                                      '¦pªG PÄ檺¼Æ­È²Å¦X1,«h¨ú¥N¬°"¤@½Ò";2«h¬°"¤G½Ò",¥H¦¹Ãþ±À

  End Sub

²¤Æ»Ý¨Dªº­ì¦]:¸U¤@¤U¦¸¤£¥u8µ§,20µ§VBAµ{¦¡½X¤£´N"º|º|ªø"¤F ><

¥H¤W ·P®¦¨Ã¾Ç²ß   Jukom

¤p§Ì¥»ª©­º¦¸´£°Ý,½Ð¤j¤j­Ì½ç±Ð
µ{¦¡½X¦p¤U
Sub test()

    Sheets("aaa").Select
    Range("A1"). ...
jukom µoªí©ó 2015-11-25 10:12

¦³ÂI¤£¸Ñ§Aªº Range("P" & ii) ¤º®eª½¨ì©³¬O¤°»ò¡H

TOP

¦³ÂI¤£¸Ñ§Aªº Range("P" & ii) ¤º®eª½¨ì©³¬O¤°»ò¡H
c_c_lai µoªí©ó 2015-11-25 10:37


Range("P" &ii)¤º®eªº­È¬O1~8ªºÅÜ¼Æ (³o­Ó³¡¥÷¬OERP¨t²Î¦Û¦æ²£¥Íªº), ¥Ø«e¬O1~8,
¹ïÀ³ªºÃö«Y¦p¤U
1  ¤@½Ò
2  ¤G½Ò
3  ¤T½Ò
4  ¥|½Ò
5  ¤­½Ò
6  A½Ò
7  B½Ò
8  C½Ò

¥H¤W ·PÁÂ Jukom

TOP

Dim Arr,i%
Arr = Array("¤@", "¤G", "¤T", "¥|", "¤­", "¤H¨Æ", "·|­p", "·~°È")
For i = 0 To UBound(Arr)
¡@¡@[A:A].Replace i + 1, Arr(i) & "½Ò", Lookat:=xlWhole
Next

TOP

Dim Arr,i%
Arr = Array("¤@", "¤G", "¤T", "¥|", "¤­", "¤H¨Æ", "·|­p", "·~°È")
For i = 0 To UBound(A ...
­ã´£³¡ªL µoªí©ó 2015-11-25 11:30


·PÁ­㴣³¡ªL¤j¤j, ­ì¨Ó¬O­n¥Î UBound, À´¤FÀ´¤F ><

TOP

        ÀR«ä¦Û¦b : °ß¨ä´L­«¦Û¤vªº¤H¡A¤~§ó«i©óÁY¤p¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD