find and replace macro strange behaviour
I've tested this procedure :
1- format a cell in text
2- copy the below formula in the cell
=IF(26;TRUE;FALSE)
4- change the format of the cell into general
3- run this macro
Sub remplacement()
Sheets("Sheet2").Select
Cells.Replace What:="=", replacement:="=", LookAt:=xlPart,
SearchOrder _
:=xlByRows, MatchCase:=False
End Sub
and I've an error : "replace method of range class failed" ?
BUT if I do a "Find and replace" it works, If I edit the cell and hit
enter it works, the formula give the value "FALSE"
is it an excel bug ? why this macros doesn't work, this maccro has been
recorded with the "find and replace" menu, it has to be the same way of
doing ???!!!!
tx
nic
|