Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi all,
If I record a macro that does a find / replace on a sheet and then record another one that does a Find / Replace on the entire workbook, they are identical!! How can I code a Find / Replace statement that will always perform on all sheets in my workbook? e.g. This is the one for the sheet: Application.FindFormat.Clear Application.ReplaceFormat.Clear Cells.Replace What:="aaaa", Replacement:="bbbbb", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False ..... and this is the one for the workbook: Application.FindFormat.Clear Application.ReplaceFormat.Clear Cells.Replace What:="aaaa", Replacement:="bbbbb", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False The only way I can make it work, is to set the switch in the Find / Replace Dialog box on the EDIT Menu bar. Anyone know how to switch that on in the macro?? Thanks for any help ... Best regards, Robert |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to find replace text or symbol with carriage return | New Users to Excel | |||
macro to Find Replace in Excel | Excel Discussion (Misc queries) | |||
Find & Replace results to display specified chosen fields | Excel Discussion (Misc queries) | |||
How Can I find and replace symbols in excel data ( white square) | Excel Discussion (Misc queries) | |||
Find & Replace questions | Excel Worksheet Functions |