Godders199
Active Member
- Joined
- Mar 2, 2017
- Messages
- 313
- Office Version
- 2013
Hello, currently i am using the following recorded code to create a dropdown list
Columns("ab:ab").Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="='SQ Hierarchy'!$A:$A"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
What i need to do now is add a criteria into this vba, to only show names in the list from SQ Hierarchy A:A , where SQ Hierararchy B:B is Cardiff for example.
would be good to know 2 options, either to hardcode it into the VBA , or make it dependant on the value in another cell, which could be the best option.
from reading google , it appears it is a dependant dropdown list, but cant find any vba examples.
Any help would be appreciated
Columns("ab:ab").Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="='SQ Hierarchy'!$A:$A"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
What i need to do now is add a criteria into this vba, to only show names in the list from SQ Hierarchy A:A , where SQ Hierararchy B:B is Cardiff for example.
would be good to know 2 options, either to hardcode it into the VBA , or make it dependant on the value in another cell, which could be the best option.
from reading google , it appears it is a dependant dropdown list, but cant find any vba examples.
Any help would be appreciated