Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Meenachi Suppiah   on Feb 02 In MS Office Category.

  
Question Answered By: Malcolm Carter   on Feb 02

Try this:

------------------------------------
Sub SeekAndDestroy()

Dim strCheck As String
Dim Flag As Boolean

strCheck = Range("A3").Value
Range("AA1").CurrentRegion.Select

For Each r In Selection.Rows
Flag = False
For Each c In r.Columns
If Flag = True Then c.Formula = ""
If c.Value = strCheck Then Flag = True
Next c
Next r

End Sub

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 


Tagged: