Excel数据validation列表分隔符

我有列表上的datavalidation

我需要第一个条目将是“input值”,并通过插入空白行或行,将其与其他列表项目分开,因为它会像可选标题条目。 行走时,分隔符必须是不可select的

就是这样

Enter value Item1 Item2 Item2 or Enter value ------------ Item1 Item2 Item3 

没有使用COMBOBOXes请!

您可能最好的做法是将这两个新值添加到列表中,然后在Worksheet_Change事件中select无效值时捕获。 例如,当A1有validation列表时:

 Private Sub Worksheet_Change(ByVal Target As Range) If Range("A1") = "Enter value" Or Range("A1") = "______" Then MsgBox ("OMG! Even though the value is selectable, you may not select it. Select something else please.") Range("A1") = "" End If End Sub