#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Numeric

I have a column of figures which are not numeric type, how can I change to
numeric type by VBA.

Could someone please help. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Numeric

Columns("E:E").Numberformat = "#,##0.00"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"AlanW" wrote in message
...
I have a column of figures which are not numeric type, how can I change to
numeric type by VBA.

Could someone please help. Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Numeric

Hello Bob,

First, I have to thank you for your reply.

Perhaps I should give more details about the problem. In fact, the content
(I don't know whether it is of numeric or text nature) is copied from a
web-site. When it is pasted on worksheet, there is a green triangle shown on
the upper left cornor asking for actions. What I need to do is to change it
to numbers. Could you please show me.

Thank you in advance for help.

"Bob Phillips" 來函:

Columns("E:E").Numberformat = "#,##0.00"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"AlanW" wrote in message
...
I have a column of figures which are not numeric type, how can I change to
numeric type by VBA.

Could someone please help. Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Numeric

You could try this manually:

Select an empty cell
edit|copy
Select the range to fix
edit|paste special|check values and add (both)

If that fixes the problem and you really need a macro, then record a macro when
you do it manually.

But...

Copying from web pages can be a problem. Sometimes what looks like a space
character isn't really a space character--it's one of those HTML non-breaking
spaces.

David McRitchie has a macro that cleans up this kind of stuff:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

AlanW wrote:

Hello Bob,

First, I have to thank you for your reply.

Perhaps I should give more details about the problem. In fact, the content
(I don't know whether it is of numeric or text nature) is copied from a
web-site. When it is pasted on worksheet, there is a green triangle shown on
the upper left cornor asking for actions. What I need to do is to change it
to numbers. Could you please show me.

Thank you in advance for help.

"Bob Phillips" 來函:

Columns("E:E").Numberformat = "#,##0.00"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"AlanW" wrote in message
...
I have a column of figures which are not numeric type, how can I change to
numeric type by VBA.

Could someone please help. Thanks





--

Dave Peterson
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
Find and Return Numeric Label based on (Numeric Value) Criterion Sam via OfficeKB.com Excel Worksheet Functions 2 September 18th 06 11:20 PM
Find Numeric Criterion in Column & Return the Numeric Value from Row above Sam via OfficeKB.com Excel Worksheet Functions 6 April 27th 06 02:50 PM
Numeric in Text to convert back to the form of Numeric for VLookup Purposes achilles Excel Discussion (Misc queries) 4 February 6th 06 07:05 AM
Match Single Numeric Criteria and Return Multiple Numeric Labels Sam via OfficeKB.com Excel Worksheet Functions 3 December 30th 05 08:01 PM
Match Single Numeric Criteria and Return Multiple Numeric Labels Sam via OfficeKB.com Excel Worksheet Functions 0 December 29th 05 08:44 PM


All times are GMT +1. The time now is 10:30 AM.

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"