I have the code below, which defines a range in column K then searches that range for any cell where the value equals "Customer Tickets". From there, I am having trouble getting what I want out of the macro.
What I need is:
For every occurance of "Customer Tickets" in column K, i need some of the data in the corresponding rows to be changed to "Checked".
For example, if the macro finds cell K19 to be equal to "Customer Tickets, then I need the value in cells M19:O19 to all equal "Checked" and I cant seem to get the offset to work correctly.
Any ideas?
What I need is:
For every occurance of "Customer Tickets" in column K, i need some of the data in the corresponding rows to be changed to "Checked".
For example, if the macro finds cell K19 to be equal to "Customer Tickets, then I need the value in cells M19:O19 to all equal "Checked" and I cant seem to get the offset to work correctly.
Code:
Sub CustTick()
Dim metric As Range
' highlights variable range in column K
LastRow = Range("K1").End(xlDown).Row
Range(Cells(2, "K"), Cells(LastRow, "K")).Select
' sets selection as the range to search
Set metric = Selection
For Each Cell In metric
If Cell = "Customer Tickets" Then
' need macro
End If
Next Cell
End Sub
Any ideas?