Is there a way to have a default value appear from a validation list when it gets created in VBA? So far I have:
.Cells(j, 7).Validation.Add Type:=xlValidateList, Formula1:="=" & "Listname"
Sure. Just explicitly set the cell's value after you add its validation rule :)
Dim defaultValue as String 'string right?
defaultValue = ... 'get the value you want from your [ListName]
.Cells(j, 7).Validation.Add Type:=xlValidateList, Formula1:="=" & "Listname"
.Cells(j, 7).Value = defaultValue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With