Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conditional macro to hide rows
try:
with Range("your range") for each cell in .columns(3) 'column within the range with the hours if cell=0 then cell.entirerow.hidden=true else cell.entirerow.hidden=false end if next end with "cher" wrote: I have a worksheet containing employee ID numbers and hours worked on each job. I need help with a macro to hide all rows on the worksheet that have zero hours for any job. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro code to hide rows and not calculate hidden rows | Excel Discussion (Misc queries) | |||
Hide rows with conditional formatting | Excel Discussion (Misc queries) | |||
Using VBA to Conditional Hide Rows? | Excel Discussion (Misc queries) | |||
Conditional Hide rows with zero | Excel Programming | |||
Conditional hide rows macros | Excel Programming |