Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to have code to select a range of cells and change any cell
value that is <0 to 0. Thanks, Aaron |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub changetoZero()
for each cell in selection if isnumeric(cell) then if cell.value < 0 then cell.value = 0 end if Next end sub -- Regards, Tom Ogilvy "Aaron" wrote: I would like to have code to select a range of cells and change any cell value that is <0 to 0. Thanks, Aaron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can change range to select active rows instead of :=Range("S10 | Excel Discussion (Misc queries) | |||
How can I change range name definitions as the No. of rows change. | Excel Programming | |||
How do I change a range name back to the underlying data range? | Excel Worksheet Functions | |||
How can I dynamically change the range for Range("A1:M500")? | Excel Programming | |||
Change cell colour for a cell or range within a predefined range | Excel Programming |