0
我有一個受保護的工作表,但單元格B12:B27沒有鎖定。此代碼不適用於鎖定的工作表。任何想法?。VBA-數據驗證錯誤
If Not Application.Intersect(Target, Range("B12:B37")) Is Nothing Then
With Range("B" & ActiveCell.Row).Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="B,E,R,TG,TU,V"
End With
End If
感謝