Search &, replace several values
Posted by amroo on May 17, 2001 11:14 PM
Bonjour, I have this code:
'""""""""""""""""""""""""""""""""""""""""""""""""""""
Range("B10:G51").Replace What:="#N/A",Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=True
Range("B10:G51").Replace What:="0", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=True
Range"B10:G51").Replace ,what:="#DIV/!", ",LookAt:=xlPart,SearchOrder:=xlByRows, MatchCase:=True
'""""""""""""""""""""""""""""""""""""""""""""""""""""""
is there a way to write it as this:
Range("B10:G51").Replace What:="#N/A","0","#DIV/!_ Replacement:="", LookAt:=xlPart,SearchOrder:=xlByRows, MatchCase:=True
Thanks for all
A+mroo