Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You don't need vba, just a helper column. In H2, enter:
=IF(COUNTBLANK(B2:G2)=6,1,0) and copy down a value of 1 means that all the cells from B2 to G2 are blanks. Just AutoFilter on column H to hide all the 1's -- Gary''s Student - gsnu200798 "ub" wrote: Hi I have range of cell from b2:g40 and I want to hide the the rows if any of the cells in the range is blank. Example: if any of the cells in row 2 from b2 to g2 is not blank, i want to display the row#2. but suppose if all the cells in range b2 to g2 are blank, I want to hide the row #2 I want to go this for 40 rows. Can you please advise some VBA code on this |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Drop Down/List w/Code and Definition, only code entered when selec | Excel Worksheet Functions | |||
2007 Autofilter worse than 2003 Autofilter | Excel Discussion (Misc queries) | |||
Autofilter code | Excel Discussion (Misc queries) | |||
How to Sort within AutoFilter with Protection on (and AutoFilter . | Excel Discussion (Misc queries) | |||
VBA code to locate cell address of AutoFilter dropdown box | Excel Discussion (Misc queries) |