本帖最後由 starry1314 於 2015-9-2 13:31 編輯
因有數百格驗證清單,沒辦法使用選取的來關閉錯誤提醒 會導致設定被刪除
有使用錄製的但沒辦法套用至別的儲存格
定義名稱會被覆蓋掉
只想讓他執行關閉錯誤那行,但如果前面
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=_1_2_1_1" 刪掉 會不能執行
Sub 錯誤提醒()
'
Range("G6:H6").Select
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="=_1_2_1_1"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.IMEMode = xlIMEModeNoControl
.ShowInput = True
.ShowError = False
End With
End Sub |