I created Data Validation in VBA.
How can I choose the first item on the list? (or any in the list)
The sheet is leaving a blank.
Code:
Windows("New_Data.xlsx").Activate
Sheets("MAIN_DATA").Select
.Range("AK" & SymNum).Delete
With Sheets("MAIN_DATA").Range("AK" & SymNum).Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=AK
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
.Value = Range(Replace(.Validation.Formula1, "=", "")).Cells(1, 1) 'Added this. I know it's wrong
End With
My first post, please excuse newbie question.
Self taught VBA newbie.
Current skill: above "record macro".
Bookmarks