- Mar 20, 2001
- 1,011
- 0
- 76
This simply finds columns with "%" and formats all numbers below it to one significant digit after the decimal. I would like to to find columns with "%", "#", "Rate", etc. Right now I'm manually changing the What:="%" to the value I need. Is there a way to search for multiple values at the same time using an OR statement?
Cells.Find(What:="%", What:="Rate", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Range(Selection, Selection.End(xlDown)).Select
Selection.NumberFormat = "0.0"
Cells.Find(What:="%", What:="Rate", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Range(Selection, Selection.End(xlDown)).Select
Selection.NumberFormat = "0.0"
