What besides the Edit Menu and Ctrl+H ?
I can't find my CommandBars Reference workbook, but I
think that you would only have to change the "command" for the Replace Button on the Edit CommandBar to call your own F&R code.
@SamT -- Ok, Ok, Ok .. so maybe it's only 2 places
If you can find theCommandBars reference AND a bit of code that would be useful ... please
@Aflatoon -- I sort of considered the CustomUI approach, but didn't do too much experimenting
1. Replace Excel's with my Sub in the CustomUI
2. If on the correct sheet, .EnableEvents = False, show Application.Dialogs(xlDialogFormulaReplace), do it, and turn events on afterwards
3. If not on the correct sheet, just do Application.Dialogs(xlDialogFormulaReplace)
The Application.Dialogs(xlDialogFormulaReplace) dialog is different than the Control-H and the Excel version (no [Options] button) but I guess I could live with that
Sub MyFR()
Dim dglFindReplace As Dialog
'find_text, replace_text, look_at, look_by, active_cell, match_case, match_byte
Set dglFindReplace = Application.Dialogs(xlDialogFormulaReplace)
dglFindReplace.Show
End Sub
Thoughts?
Paul
PS: still doesn't explain Excel's Replacing a number of cells, and then firing the event for each cell, one at a time