Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Change Row of text to values

Hello,

I am trying to convert a column of #'s formatted as text ( GENERAL )
to values for use in calculation/lookup functions.

I would like to plug solution into existing macro that performs these
mentioned functions.

The column is 'AB' and I need no 'nice messages or if variable if statements',
Only for entire column to be converted into a # format.

The #'d cells have the green "ERROR" indicator in top left corner of cell and
I get desired results by:

1) clicking cell
2) clicking "ERROR" indicator popup
3) choosing "Convert to Number'

but it does not record these actions with the VBA recorder



This is Driving me Nuts, can someone help with simple solution?

Brgds, SteveT
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default Change Row of text to values

On Nov 14, 12:14 pm, SteveT wrote:
Hello,

I am trying to convert a column of #'s formatted as text ( GENERAL )
to values for use in calculation/lookup functions.

I would like to plug solution into existing macro that performs these
mentioned functions.

The column is 'AB' and I need no 'nice messages or if variable if statements',
Only for entire column to be converted into a # format.

The #'d cells have the green "ERROR" indicator in top left corner of cell and
I get desired results by:

1) clicking cell
2) clicking "ERROR" indicator popup
3) choosing "Convert to Number'

but it does not record these actions with the VBA recorder

This is Driving me Nuts, can someone help with simple solution?

Brgds, SteveT


Did you try to copy the whole Column, and Paste special as values in
the same column?

Copy AB -- Edit = Paste Special... = Select "Values" and click OK

hth

Carlo

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 57
Default Change Row of text to values

I Found It :)

Simple solution found through MS Direct sight. For those interested its
below:

Columns("AB:AB").Select
For Each xCell In Selection
xCell.Value = xCell.Value
Next xCell



"SteveT" wrote:

Hello,

I am trying to convert a column of #'s formatted as text ( GENERAL )
to values for use in calculation/lookup functions.

I would like to plug solution into existing macro that performs these
mentioned functions.

The column is 'AB' and I need no 'nice messages or if variable if statements',
Only for entire column to be converted into a # format.

The #'d cells have the green "ERROR" indicator in top left corner of cell and
I get desired results by:

1) clicking cell
2) clicking "ERROR" indicator popup
3) choosing "Convert to Number'

but it does not record these actions with the VBA recorder



This is Driving me Nuts, can someone help with simple solution?

Brgds, SteveT

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Change Row of text to values

You might want to refine that a bit so's it doesn't operate on the entire
column.

Sub change_to_nums()
Dim rng As Range
Dim xCell as Range
Set rng = Range(Range("AB1"), Range("AB" & Rows.Count). _
End(xlUp).Address)
For Each xCell In rng
xCell.Value = xCell.Value
Next xCell
End Sub


Gord Dibben MS Excel MVP

On Wed, 14 Nov 2007 09:34:01 -0800, SteveT
wrote:

I Found It :)

Simple solution found through MS Direct sight. For those interested its
below:

Columns("AB:AB").Select
For Each xCell In Selection
xCell.Value = xCell.Value
Next xCell



"SteveT" wrote:

Hello,

I am trying to convert a column of #'s formatted as text ( GENERAL )
to values for use in calculation/lookup functions.

I would like to plug solution into existing macro that performs these
mentioned functions.

The column is 'AB' and I need no 'nice messages or if variable if statements',
Only for entire column to be converted into a # format.

The #'d cells have the green "ERROR" indicator in top left corner of cell and
I get desired results by:

1) clicking cell
2) clicking "ERROR" indicator popup
3) choosing "Convert to Number'

but it does not record these actions with the VBA recorder



This is Driving me Nuts, can someone help with simple solution?

Brgds, SteveT


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 229
Default Change Row of text to values

Type in 1 in any free cell. Copy this cell. Highlight your data that
you want converted to number. Go to Edit-Paste Special; select
Values and Multiply.

On Nov 14, 3:45 pm, Gord Dibben <gorddibbATshawDOTca wrote:
You might want to refine that a bit so's it doesn't operate on the entire
column.

Sub change_to_nums()
Dim rng As Range
Dim xCell as Range
Set rng = Range(Range("AB1"), Range("AB" & Rows.Count). _
End(xlUp).Address)
For Each xCell In rng
xCell.Value = xCell.Value
Next xCell
End Sub

Gord Dibben MS Excel MVP

On Wed, 14 Nov 2007 09:34:01 -0800, SteveT
wrote:



I Found It :)


Simple solution found through MS Direct sight. For those interested its
below:


Columns("AB:AB").Select
For Each xCell In Selection
xCell.Value = xCell.Value
Next xCell


"SteveT" wrote:


Hello,


I am trying to convert a column of #'s formatted as text ( GENERAL )
to values for use in calculation/lookup functions.


I would like to plug solution into existing macro that performs these
mentioned functions.


The column is 'AB' and I need no 'nice messages or if variable if statements',
Only for entire column to be converted into a # format.


The #'d cells have the green "ERROR" indicator in top left corner of cell and
I get desired results by:


1) clicking cell
2) clicking "ERROR" indicator popup
3) choosing "Convert to Number'


but it does not record these actions with the VBA recorder


This is Driving me Nuts, can someone help with simple solution?


Brgds, SteveT- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Change Row of text to values

Please note OP's request.......

I would like to plug solution into existing macro that performs these
mentioned functions.



Gord

On Wed, 14 Nov 2007 21:54:08 -0000, iliace wrote:

Type in 1 in any free cell. Copy this cell. Highlight your data that
you want converted to number. Go to Edit-Paste Special; select
Values and Multiply.


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
Conditional formatting does not change when values change. ?? Texana Excel Worksheet Functions 4 August 20th 07 12:20 AM
Change text colour if range of values all zero Robin Excel Worksheet Functions 5 August 3rd 07 02:38 PM
How can I change text to proper text in multiple cells. bethye99 Excel Discussion (Misc queries) 1 January 10th 06 06:17 PM
Change of text or background color doesn't change on the screen. Susan Excel Discussion (Misc queries) 5 July 29th 05 07:18 PM
HOW TO CHANGE BAHTTEXT (THAI TEXT) TO ENGLISH TEXT IN EXCEL BASHIR Excel Worksheet Functions 0 March 29th 05 12:49 PM


All times are GMT +1. The time now is 08:31 AM.

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"