Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Howard,
no need to loop With shtExcel.Range(Cells(lngRow, 1), Cells(lngRow, 5)) ..Value = .Value End With In passing, if shtExcel does not refer to the active sheet you may also need to qualify each "Cells" with shtExcel. Regards, Peter T "Howard Kaikow" wrote in message ... Hey Howard, here's your answer. Add code like the following before setting the format. For Each rngCell In shtExcel.Range(Cells(lngFormat, 2), Cells(lngFormat + lngHigh, 3)) rngCell.Value = rngCell.Value Next rngCell This converts the cells from text to numeric format. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing the format of a phone number | Excel Worksheet Functions | |||
Changing Phone number format | Excel Worksheet Functions | |||
Changing number format | Excel Worksheet Functions | |||
Changing format of number without changing the value | Excel Discussion (Misc queries) | |||
Changing a cell's number format | Excel Programming |