Remove a character from a column

  • Thread starter Thread starter sam
  • Start date Start date
S

sam

Hello,
I have a excel sheet and I got to replace single quotes in one of
the columns and replace the resultant value in the same column. I am
relatively new to excel and not able to figure out a way to do that.

Thanks,
Sam.
 
If your single quote is always in position 1 of the cells then use:

Sub nopreapostophe()
For Each c In Selection
If c.PrefixCharacter = "'" Then c.Value = c.Value
Next
End Sub

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top