Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a spreadsheet that is exported from a database, and all of the cells have an apostrophe prefix. The apostrophe keeps hyperlinks from functioning (since they are now considered text). Here is the code I have created to remove the apostrophe - unfortunately it removes the first actual character in the cell as well as the apostrophe: Public Sub ParseApostrophe1() Dim Cell As Range Worksheets("customers").Activate ActiveCell.CurrentRegion.Select For Each Cell In Selection If Len(Cell.Value) = 1 And Cell.PrefixCharacter = "'" Then Cell.Value = Right(Cell, Len(Cell) - 1) End If Next Cell End Sub Does anyone have an idea how I can get rid of the apostrophe without deleting the first actual (visual) character in the cell. TIA Best regards, Bill |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Remove Apostrophe from end of number | Excel Discussion (Misc queries) | |||
Remove Trailing Apostrophe | Excel Discussion (Misc queries) | |||
how to remove the apostrophe | Excel Discussion (Misc queries) | |||
'09:00AM trying to get remove the apostrophe | Excel Discussion (Misc queries) | |||
Remove apostrophe | Excel Worksheet Functions |