Daily Outlook宏,用于轮询是否在办公室工作或在家工作。

huangapple go评论58阅读模式
英文:

Daily Outlook macro to poll working from office or home

问题

我想创建一个自动化的邮件提示(单选框消息框?)每天上午9点向用户询问他们是在家工作还是在办公室工作,并将响应发送给我,同时在每天结束时在Excel中收集每日信息。

我了解在Excel VBA中可以使用ontime来实现类似的功能,但在Outlook宏中似乎无法使用。

是否可以在定期的约会/会议中提供用户输入?

非常感谢对此的任何帮助。

英文:

I want to create an automated mail prompt (radio msgbox?) to poll users if they are working from home or office every day at 9am and send the response to me , also collect daily information in an excel at the end of day.
I understand something like this is possible in Excel VBA using ontime but it doesn't work for outlook macros.

Can a user input be given with a recurring appointment/meeting

Any help with this will be greatly appreciated.

答案1

得分: 1

可能的情况是使用MailItem.VotingOptions属性,该属性返回或设置一个字符串,指定包含邮件消息的投票选项的分隔字符串。然后,您可以读取MailItem.VotingResponse属性,该属性返回或设置一个字符串,指定邮件消息的投票响应。通常,此属性设置为原始消息的回复中由VotingOptions属性返回的分隔值之一。但在预约项目的OOM中没有提供此类属性。

英文:

A possible scenario is to use the MailItem.VotingOptions property which returns or sets a string specifying a delimited string containing the voting options for the mail message. Then you can read the MailItem.VotingResponse property which returns or sets a string specifying the voting response for the mail message. This property is usually set to one of the delimited values returned by the VotingOptions property on a reply to the original message. But no such properties provided in the OOM for appointment items.

Any scripts in the message body will be blocked by Outlook automatically for security reasons.

huangapple
  • 本文由 发表于 2023年6月16日 02:04:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76484394.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定