【问题标题】:VBA MAC PowerPoint KeyEventVBA MAC PowerPoint 关键事件
【发布时间】:2021-06-17 12:09:17
【问题描述】:

我有一个适用于 Windows 的 PowerPoint 宏:

Public Declare PtrSafe Function GetAsyncKeystate Lib "user32" (ByVal vKey As Long) As Integer

If GetAsyncKeystate(VK_ENTER) < 0 Then msgbox "Enter pressed!"

当我在 Mac 上运行时出现错误:“file not found user32”

这显然与 mac 上没有 Windows 库这一事实有关?

如何确定是否使用 MAC VBA for PowerPoint 按下了 [enter]。有没有等价物?找了好久,都没找到……

【问题讨论】:

标签: vba macos powerpoint user32


【解决方案1】:

我在 Ron 的网站上找到了答案:https://www.macexcel.com/examples/setupinfo/detectkeypress/

【讨论】:

    猜你喜欢
    • 2020-01-04
    • 2012-09-15
    • 2018-07-14
    • 1970-01-01
    • 2011-09-25
    • 1970-01-01
    • 1970-01-01
    • 2012-07-06
    • 2020-05-02
    相关资源
    最近更新 更多