Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro: Find and replace | Excel Discussion (Misc queries) | |||
find and replace within workbook macro | Excel Discussion (Misc queries) | |||
Find & Replace in VB macro | Excel Discussion (Misc queries) | |||
Creating a macro to find and replace text | Excel Worksheet Functions | |||
macro to Find Replace in Excel | Excel Discussion (Misc queries) |