shantraj.antin@gmail.com
Member
hi Guys,
In the below code I am trying to find the key words "7s" and "6V" from the worksheet "Products". I am able to find and color code only one line Item. I struck to loop it untill it finds all the occurance.
Can someone help me pleae?
***********************************************
Sub FindPremium_PNS()
Dim RngFindTitle As Range
FindWhat = Array("7s", "6v")
Application.ScreenUpdating = False
With Sheets("Products").Range("H:H")
Set RngFindTitle = .Find(FindWhat)
End With
If RngFindTitle Is Nothing Then
MsgBox ("Sorry! No keyword title is found")
Else
RngFindTitle.EntireRow.Interior.Color = RGB(255, 0, 0)
MsgBox ("Premium Products! 7s/6v are hilighted in Red")
End If
End Sub
In the below code I am trying to find the key words "7s" and "6V" from the worksheet "Products". I am able to find and color code only one line Item. I struck to loop it untill it finds all the occurance.
Can someone help me pleae?
***********************************************
Sub FindPremium_PNS()
Dim RngFindTitle As Range
FindWhat = Array("7s", "6v")
Application.ScreenUpdating = False
With Sheets("Products").Range("H:H")
Set RngFindTitle = .Find(FindWhat)
End With
If RngFindTitle Is Nothing Then
MsgBox ("Sorry! No keyword title is found")
Else
RngFindTitle.EntireRow.Interior.Color = RGB(255, 0, 0)
MsgBox ("Premium Products! 7s/6v are hilighted in Red")
End If
End Sub