==[[Excel VBA すべてのシートに対して一括置換]]==
[[Excel]] | [[Excel VBA]] |
====すべてのシートに対して一括置換する====
Sub AllReplaceAll[[R]]eplace()
Dim f As String
Dim t As String
Dim i As Integer
Dim sht As [[Excel]].Worksheet
f = InputBox("置換対象文字列を入力してください")
End If
sht.Cells.Replace [[R]]eplace What:=f, Replacement[[R]]eplacement:=t, LookAt:= _ xlPart, SearchOrder:=xlByRowsxlBy[[R]]ows, MatchCase:=False, MatchByte:=False
Next
Call MsgBox("完了")
End Sub