ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Remove a character from a column (https://www.excelbanter.com/excel-programming/307906-remove-character-column.html)

sam[_6_]

Remove a character from a column
 
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.

JMay

Remove a character from a column
 
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

"sam" wrote in message
om...
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.





All times are GMT +1. The time now is 09:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com