Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Gary,
You are a genius, I have been struggling with this for hours. Your code worked great. "Gary''s Student" wrote: Try the following event macro: Private Sub Worksheet_Change(ByVal Target As Range) Set b2 = Range("B2") Set t = Target If Intersect(t, b2) Is Nothing Then Exit Sub v = b2.Value If v = "Year" Then Call yearr Else Call monthh End If End Sub Note: I changed the spelling of the called routines to avoid ambiguities. -- Gary''s Student - gsnu200798 "OsmoseTom" wrote: I have a data validation list in cell B2. The list consists of two choices (Year, Month). Based on the users selection I would like to run a macro. The maros are named Year and Month. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Create a macro from drop down list (Validation List) in excel | Excel Programming | |||
Macro list in Tools - Macro | Excel Programming | |||
Display a macro at top of macro list? | Excel Programming | |||
How to create a macro that compares a list to another list | New Users to Excel | |||
Show Macro list (tools-macro-macros) | Excel Programming |