Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have the following code to replace two values in my sheet:
Public Sub Replace_Y_With_Rate5() For Each cell In Selection cell.Value = Replace(cell.Value, "Y", "24", 1, 1, vbTextCompare) cell.Value = Replace(cell.Value, "CP", "8", 1, 1, vbTextCompare) Next cell End Sub I'm wondering if I could combine these actions into one calculation (and how to do so); reason being I have another macro that is executed after each worksheet calculation to display a pop-up message. If the above macro is executed I receive two pop-ups (because of the separate lines = separate calculations, I believe) and want only one (pop-up to be displayed). Thanks, CVinje |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I combine worksheets w/o enough rows to combine? | Excel Worksheet Functions | |||
Combine cells with the same reference and combine quantities | Excel Discussion (Misc queries) | |||
combine or if | Excel Worksheet Functions | |||
Combine into one please. | Excel Worksheet Functions | |||
Stop excel from reporting replacements | Excel Discussion (Misc queries) |