removing single quotes from a paste operation

J

joeycalisay

i have noticed that when data being pasted to an excel worksheet have
single quotes on all cells, it is being retained by excel. i just
want excel to treat all data as text. anyway to force excel to render
each cells without the single quotes?
 
G

Guest

Enter and run this small macro:

Sub tickout()
Dim r As Range
For Each r In Selection
r.Value = r.Value
Next
End Sub
 
T

Tom Ogilvy

Sub tickout()
Dim r As Range
For Each r In Selection
r.Value = r.Value
Next
End Sub
 
J

Jim Cone

Try the Trim and Clean functions on them and then copy
and paste values again.
However, you said you wanted Excel to treat all data as text.
A leading apostrophe causes Excel to treat the data as text.
Excel also ignores that character when processing the data.
You may not have a problem?
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"joeycalisay" <[email protected]>
wrote in message
any other ideas?
 

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

Top