LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Multiple Drop Down Boxes to Hide/Unhide Row

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE_DV1 As String = "H1" '<== change to suit
Const WS_RANGE_DV2 As String = "J1" '<== change to suit

On Error GoTo ws_exit
Application.EnableEvents = False

With Target
Select Case .Address(False, False)
Case WS_RANGE_DV1: Me.Rows(12).Hidden = .Value = "Yes"
Case WS_RANGE_DV2: Me.Rows(21).Hidden = .Value = "Yes"
'etc
End Select
End With

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click



--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"DtTall" wrote in message
ups.com...
I have looked all over this group to find something that will help me
out, but no dice after several hours.

Here is my issue: I have 7 individual drop down boxes, each with a
Yes/No option. For box one, upon selecting "Yes" I want to make line
12 Unhide. If "no" was then selected it would re-hide the row. The
next box is similar except it is for row 21 and so on.

It seems simple, but I can't figure it out and any responses I found
either wouldn't work (using customized views because of so many
different options) or I couldn't get them to work (maybe I didn't
understand how to implement the code.

I am open to any solution, but I don't do much work in this area so
please explain.

Thanks,
DtTall



 
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
Hide/Unhide boxes Chicago Excel Discussion (Misc queries) 2 July 24th 08 03:48 PM
How do I create drop-down list boxes from multiple lists/headers HogLoRidr Excel Worksheet Functions 1 October 14th 06 04:04 AM
Multiple dependent drop down boxes Don Excel Discussion (Misc queries) 1 June 22nd 06 07:35 PM
Hide and unhide rows for multiple areas leonidas[_6_] Excel Programming 6 June 15th 06 07:38 PM
Hide previously used items from multiple drop lists ron Excel Worksheet Functions 0 February 27th 06 09:15 PM


All times are GMT +1. The time now is 11:43 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"