Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default removing single quotes from a paste operation

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?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default removing single quotes from a paste operation

Enter and run this small macro:

Sub tickout()
Dim r As Range
For Each r In Selection
r.Value = r.Value
Next
End Sub
--
Gary''s Student
gsnu200704


"joeycalisay" wrote:

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?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default removing single quotes from a paste operation

is this inefficient? are there any settings that i can just use?

On Feb 7, 6:22 pm, Gary''s Student
wrote:
Enter and run this small macro:

Sub tickout()
Dim r As Range
For Each r In Selection
r.Value = r.Value
Next
End Sub
--
Gary''s Student
gsnu200704

"joeycalisay" wrote:
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?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default removing single quotes from a paste operation


Paste "Values" by going to the Edit (menu) | Paste Special | Values
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"joeycalisay"
wrote in message
is this inefficient? are there any settings that i can just use?



On Feb 7, 6:22 pm, Gary''s Student
wrote:
Enter and run this small macro:

Sub tickout()
Dim r As Range
For Each r In Selection
r.Value = r.Value
Next
End Sub
--
Gary''s Student
gsnu200704


"joeycalisay" wrote:
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?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default removing single quotes from a paste operation

hi jim, the quotes are still there with Paste Special | Values

On Feb 7, 11:22 pm, "Jim Cone" wrote:
Paste "Values" by going to the Edit (menu) | Paste Special | Values
--
Jim Cone
San Francisco, USAhttp://www.realezsites.com/bus/primitivesoftware

"joeycalisay"
wrote in message
is this inefficient? are there any settings that i can just use?

On Feb 7, 6:22 pm, Gary''s Student

wrote:
Enter and run this small macro:


Sub tickout()
Dim r As Range
For Each r In Selection
r.Value = r.Value
Next
End Sub
--
Gary''s Student
gsnu200704


"joeycalisay" wrote:
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?





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default removing single quotes from a paste operation

any other ideas?

On Feb 8, 2:25 pm, "joeycalisay" wrote:
hi jim, the quotes are still there with Paste Special | Values

On Feb 7, 11:22 pm, "Jim Cone" wrote:

Paste "Values" by going to the Edit (menu) | Paste Special | Values
--
Jim Cone
San Francisco, USAhttp://www.realezsites.com/bus/primitivesoftware


"joeycalisay"
wrote in message
is this inefficient? are there any settings that i can just use?


On Feb 7, 6:22 pm, Gary''s Student


wrote:
Enter and run this small macro:


Sub tickout()
Dim r As Range
For Each r In Selection
r.Value = r.Value
Next
End Sub
--
Gary''s Student
gsnu200704


"joeycalisay" wrote:
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?



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default removing single quotes from a paste operation

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


--
Regards,
Tom Ogilvy

"joeycalisay" wrote in message
oups.com...
any other ideas?

On Feb 8, 2:25 pm, "joeycalisay" wrote:
hi jim, the quotes are still there with Paste Special | Values

On Feb 7, 11:22 pm, "Jim Cone" wrote:

Paste "Values" by going to the Edit (menu) | Paste Special | Values
--
Jim Cone
San Francisco, USAhttp://www.realezsites.com/bus/primitivesoftware


"joeycalisay"
wrote in message
is this inefficient? are there any settings that i can just use?


On Feb 7, 6:22 pm, Gary''s Student


wrote:
Enter and run this small macro:


Sub tickout()
Dim r As Range
For Each r In Selection
r.Value = r.Value
Next
End Sub
--
Gary''s Student
gsnu200704


"joeycalisay" wrote:
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?





  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default removing single quotes from a paste operation

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"
wrote in message
any other ideas?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change cut/paste operation to cut/insert operation Don Guillett Excel Programming 0 January 17th 07 03:23 PM
my code is adding single quotes KCarhart Excel Programming 1 August 4th 05 10:48 AM
my code is adding single quotes Dave Peterson Excel Programming 0 August 3rd 05 09:39 PM
Single quotes in named range Vik Mehta Excel Worksheet Functions 4 November 12th 04 02:35 PM
Magical appearance of single quotes. Dean Corda Excel Programming 2 October 16th 03 02:19 PM


All times are GMT +1. The time now is 10:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"