Remove apostrophe

Adrae

Active Member
Joined
Feb 19, 2002
Messages
306
Is there a away to write a macro that will remove the apostrophe in all selected cells. I currently have dates with apostrophes in front so that they will be seen as text. I need them as dates now and find replace doesn't seem to be working.

Any ideas? Thanks :)
 
I think the user wanted a macro to do this, which is why I suggested.

Sub DoIt()
Selection = Selection.Value
End Sub
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Sorry Dawe.
I didn't read the question correct.
Your solution is simple, short and beutyful.
regards Tommy
 
Upvote 0
Tommy Bak said:
Hi
Just a follow up on Yogi's answer.
Put 1 in random cell.
Choose copy
Mark your Date-cells
Choose paste special
Choose Multiply
All of your dates are now multiplied by one and converted to values.
Format them to dates

regards Tommy
sorry to bump such an old thread, but I just wanted to say thanks for this simple solution. you made me a hero for 5 minutes today! :LOL: (y)
 
Upvote 0
Select an empty Cell

And copy it

Now select the cell(s) which you have apostrophe before the date.

Make a right click and select Paste Special

Then select the formats button in the options window opened

and press Ok

It solves you problem

If not please mail to sureshnaidu143@gmail.com
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,749
Members
448,989
Latest member
mariah3

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
Back
Top