A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Thank you Gord...Almost... It is converting every column in my worksheet... not just the columns I highlighted. Can you show me how to limit it to the columns I highlight, even if I highlight 3 that are right next to each other?
Hi Karen Anne,
To restrict the action of Gord's suggested code to the selected columns,
try the following minor amendment:
'==========>>
Public Sub Add_Apostrophe()
Dim myCel As Range
Dim myRng As Range
Set myRng = Intersect(Selection.EntireColumn, ActiveSheet.UsedRange)
For Each myCel In myRng.Cells
If myCel.Value <> "" Then
With myCel
.Value = "'" & .Value
End With
End If
Next
End Sub
'<<==========
===
Regards
Norman