vba 将 DateTimePicker 添加到用户表单
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12258875/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 17:34:13 来源:igfitidea点击:
Adding DateTimePicker to Userform
提问by vkrams
How can I add a DateTimePicker to a User Form using VBA code.
如何使用 VBA 代码将 DateTimePicker 添加到用户表单。
Similar to adding a Label -
类似于添加标签 -
Dim TempForm As Object
Dim NewLabel as MSForms.Label
Set NewLabel = TempForm.Designer.Controls.Add("Forms.label.1")
采纳答案by vkrams
Actually, I have got the answer from this question in the sidharth
实际上,我从 sidharth 的这个问题中得到了答案