###word 置換後の範囲について。
文字列を置換したく、以下のコードを書きました。
しかし、これでは置換後の文字列が次の検索範囲となってしまいます。
つまり連続して使うことができません。
どのように改造すれば、検索範囲を通常の
|←こういうやつに戻せるでしょうか?
lang
1 2 3Sub mion_ormal() 4 5With Selection.Find 6 .Text = "\<string name=""base([0-9]{1,3})""\>\</string\>^013\<string name=""ude([0-9]{1,3})""\>\</string\>" 7 .MatchFuzzy = False 8 .MatchWildcards = True 9 .Replacement.Text = "<string name=""base\1"">@drawable/mio_base</string>^013<string name=""ude\2"">@drawable/mio_ude_normal</string>" 10 .Execute Replace:=wdReplaceOne 11End With 12 13End Sub
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。