LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default vba code on autofilter

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
2007 Autofilter worse than 2003 Autofilter jsky Excel Discussion (Misc queries) 9 October 31st 07 12:14 AM
Autofilter code Dominic LeVasseur Excel Discussion (Misc queries) 2 August 16th 06 09:33 PM
How to Sort within AutoFilter with Protection on (and AutoFilter . giblon Excel Discussion (Misc queries) 1 February 16th 06 12:23 PM
VBA code to locate cell address of AutoFilter dropdown box Dennis Excel Discussion (Misc queries) 3 August 9th 05 10:00 PM


All times are GMT +1. The time now is 12:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"