【问题标题】:Load PowerPoint Object Library on Excel - 'Error in loading dll'在 Excel 上加载 PowerPoint 对象库 - “加载 dll 时出错”
【发布时间】:2020-08-27 21:53:50
【问题描述】:

我正在尝试在 VBA 中加载“Microsoft PowerPoint 14.0 对象库”。

我使用的是 Mac 和 Excel 2016。

Sub MyPPT()
Dim VBProj As VBIDE.VBProject

Set VBProj = ThisWorkbook.VBProject

VBProj.References.AddFromFile Environ("systemroot") & "/system32/Microsoft PowerPoint.tlb"

Set VBProj = Nothing

End Sub

我明白了

运行时错误“48”:
加载DLL时出错

【问题讨论】:

  • 已加载参考“Microsoft Visual Basic for Applications Extensibility 5.3”。

标签: excel vba macos


【解决方案1】:

我不是 Mac 用户,但我很确定 Mac 上没有 System32 文件夹。你确定路径正确吗?

基于this article,路径应该类似于:

/Applications/Microsoft Excel.app/Content/SharedSuppo...

【讨论】:

    猜你喜欢
    • 2011-01-17
    • 2010-10-01
    • 2012-12-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多