0
Dim sht As Worksheet
Dim fnd As Variant
Dim rplc As Variant
fnd = "April"
rplc = "May"
For Each sht In ActiveWorkbook.Worksheets
sht.Cells.Replace what:=fnd, Replacement:=rplc, _
LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, _
SearchFormat:=False, ReplaceFormat:=False
Next sht
End Sub
私は次のコードを持っています。ワークブック全体を検索して置換する必要がありますが、行30のみに置き換えてください。特定の行のブック全体で検索と置換を行います
'sht.Cells.Replace'の代わりに' sht.Rows(30).Replace'を使用してください。 – tigeravatar