'= back to = so formulas are now operational

sheetspread

Well-known Member
Joined
Sep 19, 2005
Messages
5,120
I had cells filled with formulas, and used find/replace to turn the = signs to '= to reveal the formulas, great. Then I did the editing I needed to keep the format in order. Now I try to find/replace the '= back to plain old = signs and it won't let me. What's the solution?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
An easier solution is to goto Tools-->Options-->Formulas to view the formulas. or CTRL+~.

HTH,

Smitty
 

sheetspread

Well-known Member
Joined
Sep 19, 2005
Messages
5,120

ADVERTISEMENT

Yes Smitty, but...............

I wasn't trying to view the formulas, I wanted to keep them from changing when I deleted certain rows. Everything worked great, but now I have to erase each ' individually to get the formulas back, which will take forever (# of rows>1000).
 

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
My mistake.

From the MSKB:

<font face=Tahoma><SPAN style="color:#00007F">Sub</SPAN> ApostroRemove()
    <SPAN style="color:#00007F">For</SPAN> <SPAN style="color:#00007F">Each</SPAN> currentcell <SPAN style="color:#00007F">In</SPAN> Selection
        <SPAN style="color:#00007F">If</SPAN> currentcell.HasFormula = <SPAN style="color:#00007F">False</SPAN> <SPAN style="color:#00007F">Then</SPAN>
            <SPAN style="color:#007F00">'Verifies that procedure does not change the</SPAN>
            <SPAN style="color:#007F00">'cell with the active formula so that it contains</SPAN>
            <SPAN style="color:#007F00">'only the value.</SPAN>
            currentcell.Formula = currentcell.Value
        <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">If</SPAN>
    <SPAN style="color:#00007F">Next</SPAN>
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN>
</FONT>

Smitty
 

sheetspread

Well-known Member
Joined
Sep 19, 2005
Messages
5,120
Now you have it

Thanks, I just got that code off the MS page too, it works great.
 

Forum statistics

Threads
1,141,718
Messages
5,708,070
Members
421,543
Latest member
SGM

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top