Is a macro ok?
Option Explicit
Sub testme()
Dim myRng As Range
Dim myCell As Range
Set myRng = Nothing
On Error Resume Next
Set myRng = Intersect(Selection, _
Selection.Cells.SpecialCells(xlCellTypeConstants))
On Error GoTo 0
If myRng Is Nothing Then
MsgBox "No constants in selection!"
Exit Sub
End If
For Each myCell In myRng.Cells
If myCell.PrefixCharacter <> "'" Then
myCell.Value = "'" & myCell.Text
End If
Next myCell
End Sub
Select a range and try it out.
If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
Jim Moberg wrote:
>
> Hi,
>
> I have a spreadsheet of data and a number of the columns have data that is
> preceeded by a hidden apostrophe. The apostrophe can only be seen when you
> click on the cell. I have looked and can't find a post that addresses this.
> Can anyone out there tell me how to remove this. I have tried using the trim
> function in conjuction with the clean function and it didn't work. Ack!
--
Dave Peterson