Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet that is exported from another system. The numbers
in it are exported as text with leading zeros. I can convert this text to numbers from within the worksheet using the function =value(), but I want my macro to convert them automatically. I do not want to move the data from the current cells, just convert it to numbers so that it can be totalled. What is the correct command/syntax for this? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try something like this using DB as the range you want to change:
Dim CellRge as object For Each Cellrge in DB cellrge = val(cellrge) Next CellRge "RobH" wrote in message ups.com... I have a spreadsheet that is exported from another system. The numbers in it are exported as text with leading zeros. I can convert this text to numbers from within the worksheet using the function =value(), but I want my macro to convert them automatically. I do not want to move the data from the current cells, just convert it to numbers so that it can be totalled. What is the correct command/syntax for this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I refresh cells after changing the format? | Excel Discussion (Misc queries) | |||
Linking cells with changing format | Excel Discussion (Misc queries) | |||
Format of Cells Changing on thier own | Excel Discussion (Misc queries) | |||
Format of cells Changing on thier own | Excel Worksheet Functions | |||
Changing Cells format using VBA | Excel Programming |