vba - 日期选择器控件替换在 Outlook 中不起作用
问题描述
我最近被引导到下面的链接以替换日期时间选择器用户窗体控件(它在 64 位 Office 365 中不起作用,即使注册了 MSCOMCT2 等)。谢谢你,它在 excel 中效果很好,这正是我所追求的。
但是,当我尝试在 Outlook 用户窗体上运行它时,我收到一个编译错误,告诉我未识别用户定义的类型。违规行是用户表单声明中的“Private Cal_theme As CalendarThemes”。
Option Explicit
Private TimerID As Long, TimerSeconds As Single, tim As Boolean
Dim curDate As Date
Dim i As Long
Dim thisDay As Integer, thisMonth As Integer, thisYear As Integer
Dim CBArray() As New CalendarClass
Dim NewXpos As Single
Dim NewYpos As Single
Private Cal_theme As CalendarThemes
Private LdtFormat As String, SdtFormat As String
Outlook 中的引用与 Excel 中的引用相同。
我可能错过了一个类似的问题,但在这里找不到答案。有谁知道为什么会这样?
解决方案
推荐阅读
- git - 如何返回已删除的文件,我不知道哪个名称?
- google-bigquery - 将 UNNEST 与 with_query_name(WITH 子句)表中的列一起使用
- javascript - 使用 Javascript 更新多个 UpdatePanel
- javascript - 如何在 reactjs 中使用 javascript 更改样式
- html - onload函数和onclick在jsp中不起作用
- javascript - Javascript 文件到 Blob
- python - 在 requests.post() python3 上接收错误
- angular - css 后加载角度数据,破坏设计
- python - return func(*args, **kwargs) ValueError: read of closed file
- jquery - MVC - ajax 调用中的历史 API