Excel里无法插入Date and Time Picker控件,哪位大虾知道是什么原因
追求自由 2012-03-22 11:36:15 想双击excel的单元格时,能弹出日期控件。以前好用,现在换了台新机器就不好用了。
我已经下载了微软的Date and Time Picker空间——Mscomct2.ocx,并完成了注册(注册成功)
Private Sub UserForm_Initialize()
MsgBox ("hello1")
Set DTPicker1 = Me.Controls.Add("MSComCt12.DTPicker.2")
MsgBox ("hello12")
If DTPicker1 Is Nothing Then
MsgBox "本机不支持日历控件,请手工输入日期"
Exit Sub
End If
MsgBox ("hello13")
End Sub
错误提示:“无效的类别字符串”。