Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Tom Ogilvy!
I haven't tried this but the "isnumeric" check I think will do the trick. The if right(cell,1) = "-" didn't help because the headers have dashes and so it would see the dash and then try to change it to double. Thanks again! Anita Tom Ogilvy wrote: The check if right(cell,1)="-" then should eliminate any problems with headers - cdbl then only looks at cells containing a "-" as the rightmost character. cdbl converts this a negative number ? cdbl("231-") -231 if you having problems, add an isnumeric test ? isnumeric("231-") True Dim myRange as Range, Cell as Range set myRange = Range(Cells(2,10),cells(rows.count,10).End(xlup)) set myRange = myRange.Offset(0,-8).Resize(,9) for each cell in myRange.SpecialCells(xlConstants,xlTextValues) if right(cell,1)="-" then if isnumeric(cell) then cell.Value = cdbl(cell.value) end if end if Next |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I could NOT resize the axis title but excel allows me to resize gr | Charts and Charting in Excel | |||
I could NOT resize the axis title but excel allows me to resize gr | Charts and Charting in Excel | |||
Resize a cell | Excel Discussion (Misc queries) | |||
Resize name box | Setting up and Configuration of Excel | |||
Need some help with Resize. Thanks | Excel Programming |