gio123bg
05-28-2010, 04:32 AM
Hi all,
I use this VBA code for setting a list i(approved, under review, blank) in a cell but I need to set a defaul value if this condition is respected.
Range(cellist).Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=namerange
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
IF cell(x,y).value is blank
set "approved" in the list
ELSE
set "under review" in the list
otherwise live the list vithout setting values.
Any suggestion will be well appreciated.
Regards,
Giovanni
I use this VBA code for setting a list i(approved, under review, blank) in a cell but I need to set a defaul value if this condition is respected.
Range(cellist).Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=namerange
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
IF cell(x,y).value is blank
set "approved" in the list
ELSE
set "under review" in the list
otherwise live the list vithout setting values.
Any suggestion will be well appreciated.
Regards,
Giovanni