Hi blackberry2012
Welcome to the forum...Give this a go...
Option Explicit
Sub ReplaceWords()
Dim words, ws As Worksheet, i As Long
Application.ScreenUpdating = False
words = Sheet1.Range("C7:E" & Sheet1.Cells(Rows.Count, "C").End(xlUp).Row).Value
For Each ws In ThisWorkbook.Sheets
If ws.Name <> "List of Substitutions" Then
With ws
For i = LBound(words, 1) To UBound(words, 1)
.Cells.Replace what:=words(i, 1), Replacement:=words(i, 3), _
LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, _
SearchFormat:=False, ReplaceFormat:=False
Next i
End With
End If
Next ws
Application.ScreenUpdating = True
End Sub
EDIT....
in several (not all) sheets
Just realised... What sheets in your actual book need to be ignored...These can be placed into an array...
Option Explicit
Sub ReplaceAll()
Dim words, wsArr, ws As Worksheet, i As Long
wsArr = Array("1", "2", "3") ' Sheets to be ignored....
Application.ScreenUpdating = False
words = Sheet1.Range("C7:E" & Sheet1.Cells(Rows.Count, "C").End(xlUp).Row).Value
For Each ws In ThisWorkbook.Sheets
If Not IsNumeric(Application.Match(ws.Name, wsArr, 0)) Then
With ws
For i = LBound(words, 1) To UBound(words, 1)
.Cells.Replace what:=words(i, 1), Replacement:=words(i, 3), _
LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, _
SearchFormat:=False, ReplaceFormat:=False
Next i
End With
End If
Next ws
Application.ScreenUpdating = True
End Sub
Bookmarks