Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在宏中,我需要使用ActiveDocument(Word)、ActiveWorkbook(Excel) 或ActivePresentation(PowerPoint),但首先我需要确定正在运行的应用程序。
ActiveDocument
ActiveWorkbook
ActivePresentation
如何找出宏正在运行的 Office 文档类型?
这是一种获取正在运行的任何应用程序名称的方法:
MsgBox Application.Name