I have a piece of code
Sub Fix_Page()
Dim ws As Worksheet
Dim range1 As Range, rng As Range
Set ws = ThisWorkbook.Worksheets("Input")
Set rng4 = ws.Range("G8")
With rng4.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
Formula1:="=Org"
End With
End Sub
The above code works for most of the cells I am trying to use it for except this one. Because at the point this runs nothing above it has been selected "technically" this cell does "resolve to an error" so you would just normally say "continue". and it does work once selections above it are made. How do I tell VBA "yes I know its an error right now but it will work later" and have it continue with the list and formula for that cell.
Hope that makes sense.
Thanks in advance.
Sub Fix_Page()
Dim ws As Worksheet
Dim range1 As Range, rng As Range
Set ws = ThisWorkbook.Worksheets("Input")
Set rng4 = ws.Range("G8")
With rng4.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, _
Formula1:="=Org"
End With
End Sub
The above code works for most of the cells I am trying to use it for except this one. Because at the point this runs nothing above it has been selected "technically" this cell does "resolve to an error" so you would just normally say "continue". and it does work once selections above it are made. How do I tell VBA "yes I know its an error right now but it will work later" and have it continue with the list and formula for that cell.
Hope that makes sense.
Thanks in advance.