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.
我有一个 2003 excel 的 excel 插件。此插件将菜单命令添加到 excel 菜单。
我的要求是,当我单击此菜单命令时,我需要将当前文件的名称发送到不同的进程......我如何获得这些信息......
请帮我谢谢桑迪普
如果您在插件中,请尝试
string currentWorkbookFileName = this.Application.ActiveWorkbook.Name
(如果不是,我认为有一个全球性的,类似Globals.Application或Globals.ThisAddin.Application代替)
Globals.Application
Globals.ThisAddin.Application