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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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