Sub FillRoutine()
Dim EffectRange As Range
Dim Col As Range
Dim CauseRange As Range
Dim ThisCell1 As Range
Dim ThisCell2 As Range
Dim LRow As Long
Dim LColumn As Long
LRow = Cells([Link], 1).End(xlUp).Row
Set CauseRange = [Link]
[Link] = False
'Range("Q1").Select
'[Link](Selection,
[Link](xlLastCell)).Select
Set EffectRange = Range("Q4:IN4")
For Each ThisCell1 In Range("A6:A1529")
For Each ThisCell2 In Range("A1536:A" & LRow)
If [Link] Like [Link] + "*PVHH*" Or _
[Link] Like [Link] + "*ZSC_HMI*" Or _
[Link] Like [Link] + "*ZSO_HMI*" Or _
[Link] Like [Link] + "*AlarmOut*" Or _
[Link] Like [Link] + "*PVLL*" Then
[Link](0, ([Link]("R006").Column) - 1).Value = "S"
On Error Resume Next
Exit For
End If
Next ThisCell2
Next ThisCell1
On Error Resume Next
[Link] = True
End Sub