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

[µo°Ý] ´À´«Àx¦s®æ¤º ¯S©w¦r¦ê

[µo°Ý] ´À´«Àx¦s®æ¤º ¯S©w¦r¦ê

¥»©«³Ì«á¥Ñ pinklee ©ó 2011-9-20 19:53 ½s¿è

¦³   ªF,«n,¦è,¥_,¤¤, ¤­°Ï  ¦]»Ý­n ­n§ï¦¨A, B, C ,¢Ò,¢Ó°Ï
¥H¤Uªº¥¨¶° ¥u¥i°µ¨ì¤@°Ï
Sub test()
Dim dd As String
dd = "ªF°Ï"
Cells.Replace What:=dd, Replacement:="A°Ï", _
LookAt:=xlPart, SearchOrder:=xlByRows
End Sub
½Ð±Ð¦U¦ì ¥Î¤°¤èªk¥i¥H¤@¦¸§ï¼g¤­­Ó°Ï
·P¿E¤£ºÉ

Sub TEST()
a = "ªF¦è«n¥_¤¤"
b = "ABCDE"
For i = 1 To 5
Cells.Replace Mid(a, i, 1), Mid(b, i, 1)
Next
End Sub

TOP

¥»©«³Ì«á¥Ñ pinklee ©ó 2011-9-20 23:20 ½s¿è

¦^´_ 2# oobird


    ÆgÆgÆg

²¼ä¦³¤O ÁÂÁÂ

Sub TEST()
a = "¤¤¥¿°Ï«H¸q°Ï¤¤¤s°Ï"
b = ""
For i = 1 To 9 Step 3
Cells.Replace Mid(a, i, 3), Mid(b, i, 1)
Next
End Sub

°½®v¤@¤U  §ï¦¨§R°£¯S¦r¤¸ ¤£¤¶·N§a Á°Õ

TOP

Cells.Replace Mid(a, i, 3), Mid(b, i, 1)
ª½±µ
Cells.Replace Mid(a, i, 3), ""
³o¼Ë¤£¦n¶Ü¡H

TOP

»Ýµù©ú:    Àx¦s®æªº¤º®e¤£»Ý§¹¥þ¬Û¦P    ->¤£©ö¥X¿ù
Cells.Replace Mid(a, i, 3), "", xlPart

TOP

        ÀR«ä¦Û¦b : ¶¢¤HµL¼Ö½ì¡A¦£¤HµL¬O«D¡C
ªð¦^¦Cªí ¤W¤@¥DÃD