I have the below code which populates an offset cell with service should the criteria match. However at this stage, it operates on the basis that should the string appear within a cell, it will apply the value rather than the word being a complete word. For example I have "Visit" within my criteria and "Vistor" (within a cell) will comply within my code when it shouldn't. Please can someone assist?
Option Compare Text
Sub CHECK_CELL_VALUES()
Dim LASTROW As Long
Application.ScreenUpdating = False
With Sheet1
LASTROW = .Range("A1048576").End(xlUp).Row
For i = 2 To LASTROW
If Cells(i, 7).Value Like "*Service*" _
Or Cells(i, 7).Value Like "*Servicing*" _
Or Cells(i, 7).Value Like "* Labour*" _
Or Cells(i, 7).Value Like "* Job*" _
Or Cells(i, 7).Value Like "* Hire*" _
Or Cells(i, 7).Value Like "* Visit*" _
Or Cells(i, 7).Value Like "* Scaffold*" _
Or Cells(i, 7).Value Like "* Contract*" _
Or Cells(i, 7).Value Like "* Hour*" _
Or Cells(i, 7).Value Like "* Month*" _
Or Cells(i, 7).Value Like "* Quarter*" _
Or Cells(i, 7).Value Like "* Day*" _
Or Cells(i, 7).Value Like "* Maintenance*" _
Or Cells(i, 7).Value Like "* Repair*" _
Or Cells(i, 7).Value Like "* Survey*" _
Or Cells(i, 7).Value Like "* Training*" _
Or Cells(i, 7).Value Like "* Calibration*" _
Then Cells(i, 7).Offset(0, 46).Value = "Service"
Debug.Print Cells(i, 7).Address
Next i
End With
Application.ScreenUpdating = True
End Sub