I am trying to use the following code snippet from MSDN.
It does not work.
Private Sub Workbook_Open()
' only the code is from MSDN not the Sub and End Sub
'statements
Range("e5").Validation _
.Modify xlValidateList, xlValidAlertStop, _
xlBetween, "=$A$1:$A$10"
End Sub
What should a valid code look like so that cell e5 get the list of numbers in A1:A10?
It does not work.
Private Sub Workbook_Open()
' only the code is from MSDN not the Sub and End Sub
'statements
Range("e5").Validation _
.Modify xlValidateList, xlValidAlertStop, _
xlBetween, "=$A$1:$A$10"
End Sub
What should a valid code look like so that cell e5 get the list of numbers in A1:A10?