将 VBA 日期选择器 属性 重置为可见
Reseting VBA Datepicker Property to visible
我在 excel VBA 用户表单中遇到了一个不寻常的问题。
在这里,我有一个复选框,当它等于 true(即选中时)取消隐藏一个已经隐藏的日期选择器及其标签。
我使用 label1.visible = false
和 dtpicker2.visible = false
在 userform_initialize
事件中隐藏了标签和日期选择器。然后,当用户单击复选框时(在 checkbox1_change
事件中),我将标签和日期选择器的可见性转回 true
。
但是,这样做时我只能看到标签,但看不到日期选择器。
注:-
1) The Datepicker and it's label successfully hidden using the .visible
function
2) When trying to set the .visible
function back to true ONLY label comes back the datepicker still remains hidden
3) I'm using the COMCT2.cab file for the datepicker
感谢任何帮助!提前致谢。
刷新日期时间选择器:
dtpicker2.Visible = True
dtpicker2.Refresh
我在 excel VBA 用户表单中遇到了一个不寻常的问题。
在这里,我有一个复选框,当它等于 true(即选中时)取消隐藏一个已经隐藏的日期选择器及其标签。
我使用 label1.visible = false
和 dtpicker2.visible = false
在 userform_initialize
事件中隐藏了标签和日期选择器。然后,当用户单击复选框时(在 checkbox1_change
事件中),我将标签和日期选择器的可见性转回 true
。
但是,这样做时我只能看到标签,但看不到日期选择器。
注:-
1) The Datepicker and it's label successfully hidden using the
.visible
function2) When trying to set the
.visible
function back to true ONLY label comes back the datepicker still remains hidden3) I'm using the COMCT2.cab file for the datepicker
感谢任何帮助!提前致谢。
刷新日期时间选择器:
dtpicker2.Visible = True
dtpicker2.Refresh