With Data Validation Input Message, for each cell in a named range ("MyRange"), I'd like to match against Table1[Column1] and index in the value from Table1[Column2].
I need this to loop, since as it doesn't, the active cell remains constant, and the entire range has the same Input Message. I'm not committed to the formula INDEX MATCH, it just needs to perform that function.
Sub Tester()
Dim mycell As String
mycell = ActiveCell
With Range("MyRange").Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertInformation, _
Operator:=xlBetween, Formula1:="=INDIRECT(Test1&Test2)"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = Application.WorksheetFunction.Index(Range("Table1[Column2]"), _
Application.WorksheetFunction.Match(mycell, Range("Table1[Column1]"), 0))
.ErrorMessage = ""
.ShowInput = True
.ShowError = False
End With
End Sub
Thank you for any help!