The following code searches for the word "attachments" within a range and then display the cell address of that particular cell where it is found. I would like to amend this code so that instead of looking for a particular text it looks for any text at all. Often this whole range would have one or two cells which contain a text string in it and i would like to find these cells using VBA. Can anyone help me out please?
here is the code i have:
"To educate a man is to educate an individual; to educate a woman is to educate a nation"
Dr. Aggrey, Ghana.
here is the code i have:
Code:
With ActiveSheet.Range("b2:dz500")
Set c = .Find("Attachments", LookIn:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
MsgBox "Some differences were found in Cell" & c.Address, , "RFSS Status Check"
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With
"To educate a man is to educate an individual; to educate a woman is to educate a nation"
Dr. Aggrey, Ghana.