LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Cascading Data Validation Drop Down Lists

I currently have the following code tied to a worksheet. The target cell
(L3) and the dependent cells that I cleanup when the value of L3 is changed
are all on the same worksheet. I now need to modify the code because I need
to move the target field to a different worksheet but still have the
dependent cells stay on the current worksheet. The name of the worksheet is
'Enter Account' and the new target cell is cell H10. Also, do I leave the
code tied to the same current worksheet or should I move it to the new
worksheet with the target cell or to a module?

Option Explicit
Private Sub worksheet_change(ByVal target As Range)

If Intersect(target, Me.Range("$L$3")) Is Nothing Then
'do nothing
Else
'clean up cascading drop-downs if first value is changed
Me.Range("H18:W18").Value = ""
Me.Range("H19:W19").Value = ""
Me.Range("H20:W20").Value = ""
Me.Range("H21:W21").Value = ""
Me.Range("AL18:AL21").Value = ""
End If
End Sub
 
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
Cascading Drop-Down Lists Mossykel Excel Discussion (Misc queries) 4 April 8th 10 02:43 AM
Data validation or drop down lists wew Excel Discussion (Misc queries) 4 August 18th 08 03:56 PM
How to create Cascading Drop-Down Lists? John Excel Worksheet Functions 1 October 31st 06 08:21 PM
data validation and drop down lists LewR Excel Discussion (Misc queries) 3 March 14th 06 06:50 PM
Data Validation and Drop down lists. Mark Dullingham Excel Worksheet Functions 2 February 14th 06 11:51 PM


All times are GMT +1. The time now is 02:11 AM.

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"