Home |
Search |
Today's Posts |
#5
![]() |
|||
|
|||
![]()
Thank you both for the help.
I think this macro will work well for me but it may conflict with another oneI am already using that creates a second sheet based on the first. So before I go through the long process of updating the second macro is there any other methods that could accomplish this? Thanks again, c "Debra Dalgleish" wrote: You could use a worksheet_Change event to display the selected list, or show the original list if the cell is cleared. For example: '============================= Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$D$2" Then If Application.WorksheetFunction _ .CountIf(Range("MonthList"), Target.Value) Then With Target.Validation .Delete .Add Type:=xlValidateList, _ AlertStyle:=xlValidAlertStop, _ Operator:=xlBetween, _ Formula1:="=" & Target.Value .IgnoreBlank = True .InCellDropdown = True .InputTitle = "" .ErrorTitle = "" .InputMessage = "" .ErrorMessage = "" .ShowInput = True .ShowError = True End With Else If Target.Value = "" Then With Target.Validation .Delete .Add Type:=xlValidateList, _ AlertStyle:=xlValidAlertStop, _ Operator:=xlBetween, _ Formula1:="=MonthList" .IgnoreBlank = True .InCellDropdown = True .InputTitle = "" .ErrorTitle = "" .InputMessage = "" .ErrorMessage = "" .ShowInput = True .ShowError = True End With End If End If End If End Sub '============================ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to change fonts in drop down list | Excel Discussion (Misc queries) | |||
formatting drop down list | Excel Discussion (Misc queries) | |||
create a drop down list with the source from a different workbook | Excel Discussion (Misc queries) | |||
edit a drop down list | Excel Discussion (Misc queries) | |||
Drop dow list complication | Excel Discussion (Misc queries) |