I have three similar products with a yes, no list that when anyone of the 
three is yes the following formula changes CELL I9 to yes or no and hides 
or unhides rows on a proposal. Those yes , no cells F15,F23,F31 also hide, 
unhide single row entries that describe those products. This currently does 
not work, I know there's a simpler way of doing this hopefully with VBA.

IN cell I9 I have 
=IF(COUNTIF(F15:F31,"yes")>=1,"yes",IF(COUNTIF(F15:F31,"no")=3,"no",""))

Case "I9"
            .Rows("78:84").Hidden = LCase(Target) = "no"
        Case "I9"
            .Rows("78:84").UnHidden = LCase(Target) = "yes"

Case "F15"
            .Rows("53").Hidden = LCase(Target) = "no"
        Case "F15"
            .Rows("53").UnHidden = LCase(Target) = "yes"
        Case "F23"
            .Rows("54").Hidden = LCase(Target) = "no"
        Case "F23"
            .Rows("54").UnHidden = LCase(Target) = "yes"
        Case "F31"
            .Rows("55").Hidden = LCase(Target) = "no"
        Case "F31"
            .Rows("55").UnHidden = LCase(Target) = "yes"

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to