sub t
dim a as range
for each a in columns(1)
if a.value="x" then
a.Font.Underline = xlUnderlineStyleSingle
end if
next
end sub
if a.value="x" or a.value="y" or a.value="z" then
Sub Maybe()
Dim c As Range
For Each c In Range("K2:K" & Cells(Rows.Count, 11).End(xlUp).Row)
Select Case c.Value
Case "anxiety"
c.Font.Underline = xlUnderlineStyleSingle
Case "depression"
c.Font.Underline = xlUnderlineStyleSingle
Case "psychiatric"
c.Font.Underline = xlUnderlineStyleSingle
Case Else
End Select
Next c
End Sub
Sub Maybe()
Dim c As Range
For Each c In Range("K2:K" & Cells(Rows.Count, 11).End(xlUp).Row)
Select Case c.Value
Case "anxiety", "depression", "psychiatric"
c.Font.Underline = xlUnderlineStyleSingle
End Select
Next c
End Sub