誰かこのエクセルで私を助けてくれませんか。以前に定義した2つの単語から選択して削除する必要があります..
例えば:
http://ertwertw4r!%!+53445433333/cat.jpg犬がいる
http:
までのテキストを選択して.jpg
削除するか、「」に置き換える必要があります。私は犬の部分があるだけでいいので
これは単語で成功しました
Sub Macro ()
Selection.Find.ClearFormatting
With Selection.Find
.Text = "http:"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
End With
Selection.Find.Execute
Selection.Extend
Selection.Find.ClearFormatting
With Selection.Find
.Text = ".jpg"
.Replacement.Text = ""
.Forward = True .Wrap = wdFindContinue
End With
Selection.Find.Execute
End Sub
よろしく