これは奇妙に聞こえるかもしれません
Excelでデータ検証を行ったところですが、これは機能していることがわかっています。incelldropdownはデフォルトでは表示されません。しかし、行の前にmsgboxを作成すると、incelldropdownが表示されます。
これは、インセルドロップダウンが表示される場所です。
MsgBox("hello")
Me.Range("A6:A20").Validation.Add(Type:=Excel.XlDVType.xlValidateList, _
AlertStyle:=Excel.XlDVAlertStyle.xlValidAlertStop, _
[Operator]:=Excel.XlFormatConditionOperator.xlBetween, Formula1:="=named_range1")
Me.Range("A6:A20").Validation.InCellDropdown = True
しかし、MsgBoxを削除すると、incelldropdownが表示されません。
Me.Range("A6:A20").Validation.Add(Type:=Excel.XlDVType.xlValidateList, _
AlertStyle:=Excel.XlDVAlertStyle.xlValidAlertStop, _
[Operator]:=Excel.XlFormatConditionOperator.xlBetween, Formula1:="=named_range1")
Me.Range("A6:A20").Validation.InCellDropdown = True
コメントをいただければ幸いです。ありがとう!