Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I easily add an apostrophe to the beginning of an entry in a cell for multiple rows?

I'm trying to convert a list of "number format" values to "text format"
values & I know I should add an apostrophe to the beginning of the
entry in the cell to convert it. BUT I have many rows that need to be
converted. Is there an easier way to do this? Any help's appreciated!
Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default How can I easily add an apostrophe to the beginning of an entry in a cell for multiple rows?

don't know your exact range, but you can give this a try, or give a more
exact range spec

Option Explicit
Dim cell As Range
Sub test()
For Each cell In Worksheets("sheet1").UsedRange
cell.Value = "'" & cell.Value
Next

End Sub


--


Gary


wrote in message
ps.com...
I'm trying to convert a list of "number format" values to "text format"
values & I know I should add an apostrophe to the beginning of the
entry in the cell to convert it. BUT I have many rows that need to be
converted. Is there an easier way to do this? Any help's appreciated!
Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default How can I easily add an apostrophe to the beginning of an entry in

What about highlighting the entire column and formatting the cells as text?

" wrote:

I'm trying to convert a list of "number format" values to "text format"
values & I know I should add an apostrophe to the beginning of the
entry in the cell to convert it. BUT I have many rows that need to be
converted. Is there an easier way to do this? Any help's appreciated!
Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default How can I easily add an apostrophe to the beginning of an entry in

Here is a tiny macro:

Sub Macro1()
Dim r As Range
For Each r In Selection
r.Value = "'" & r.Value
Next
End Sub

Just select any set of cells (row, columns, or groups) and run it


--
Gary's Student


" wrote:

I'm trying to convert a list of "number format" values to "text format"
values & I know I should add an apostrophe to the beginning of the
entry in the cell to convert it. BUT I have many rows that need to be
converted. Is there an easier way to do this? Any help's appreciated!
Thanks.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default How can I easily add an apostrophe to the beginning of an entry in

Sometimes formatting it to text doesn't work, though it is the easiest
solution. When that happens, I insert a column next to it, copy the column I
want converted and "paste special" as values.

Hope that works for you.
klm

" wrote:

I'm trying to convert a list of "number format" values to "text format"
values & I know I should add an apostrophe to the beginning of the
entry in the cell to convert it. BUT I have many rows that need to be
converted. Is there an easier way to do this? Any help's appreciated!
Thanks.


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
One Entry to Multiple Rows Pandaura Excel Discussion (Misc queries) 1 January 21st 10 10:39 PM
HOW CAN I EASILY REMOVE MULTIPLE BLANK ROWS FROM A SPREADSHEET? sandman832 Excel Discussion (Misc queries) 2 March 9th 06 08:31 PM
Remove Spaces beginning Time entry Damon Longworth Excel Discussion (Misc queries) 10 June 19th 05 04:37 PM
How to reformat numbers stored as text (apostrophe at beginning) Dave Excel Discussion (Misc queries) 1 May 11th 05 02:34 AM
how do I easily convert a single column of text (multiple rows si. philmah Excel Discussion (Misc queries) 2 December 16th 04 12:24 AM


All times are GMT +1. The time now is 03:41 PM.

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

About Us

"It's about Microsoft Excel"