Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I need help on how to automate the conversion of a range of Excel cells from text to numbers. I'm using Excel 2007 to test, VB.NET 2005 and Excel 9.0 Object lib. I've read some rows of data into an array and I set my Excel Range = to the array which copies everything in quickly which is what I want. Cell by cell is very slow with a hi number of records. Everything is fine, except the cells with numbers were copied as text and those cells have warning flags in the corner with the first 2 options in the dropdown being: "Number Stored As Text" and Convert To Number". Clicking on Convert to Number, or even clicking inside the cell a couple of times and then outside fixes the problem and you can tell cause the warning is gone and numeric formatting is applied. How can I automate this ConvertToNumber in code. If I create thousands of these cells, the user can't be expected to convert each one manually and I need to automate it. All my searches have netted zero, zilcho, nada. Is there some hidden method somewhere that allows me to convert a range or even loop thru the range cell by cell and convert the value of each of these cells to Number instead of Text? Your help would be appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I convert number to text in excel | Excel Programming | |||
number convert to text in excel | Excel Discussion (Misc queries) | |||
How do I convert a number in Excel to text? | Excel Worksheet Functions | |||
convert text-format number to number in excel 2000%3f | Excel Discussion (Misc queries) | |||
convert number to text in Excel | Excel Programming |