Tim Hanson
Member
Hello,
Is there a way to add auto complete to this Macro so that when a user starts typing in a cell in column A it auto completes
Thank you
Is there a way to add auto complete to this Macro so that when a user starts typing in a cell in column A it auto completes
Thank you
Code:
Sub CreateDV()
Dim rng As Range
Dim cell As Range
Dim lRow As Long
Dim ws As Worksheet
Sheets("New").Select
Set ws = Sheets("New")
lRow = ws.Range("A" & ws.Rows.count).End(xlUp).Row
Set rng = Range("A4:A" & lRow)
With rng.Validation
For Each cell In rng
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
Next cell
End With
End Sub