Search for text in a formula Home Board Archive Index Dates Search for text in a formula Posted by Omar on August 28, 2001 11:16 PM How can I search a text, like "[" in a formula? Posted by Nandor on August 28, 2001 11:45 PM Try this :- Dim cell As RangeFor Each cell In SelectionIf cell.HasFormula ThenIf InStr(1, cell.Formula, "[", vbTextCompare) > 0 ThenMsgBox "The formula in " & cell.Address(False, False) & " contains "" [ """End IfEnd IfNext