MS项目2010标准版上的功能区中的宏 [英] Macros in the ribbon on MS project 2010 standard version
问题描述
我在MS project 2010标准版本的功能区中添加了宏。我将它们存储在文件中(不是全局的)。在我重命名MSproject文件之前,所有工作都正常工作。
I added macros to the ribbon in MS project 2010 standard version. I stored them in the file (not the global). All works fine just as expected until I rename the MSproject file.
一旦我重命名文件,没有任何宏工作。我仍然可以从开发人员/宏运行菜单中运行它们。但是,如果.mpp文件已重命名,则所有宏都不起作用。如果我将它们的名称更改回原始名称,它们会再次运行。
Once I rename the file none of the macros work. I can still run them from the developer/macro run menu. But none of the macros work if the .mpp file has been renamed. If I change them name of the file back to the orignal name they work again.
如何将宏保留在文件的本地,并使宏在功能区中工作,而不管文件是什么名称?
How do I keep the macros local to the file and have the macros work in the ribbon regardless of the file name?
推荐答案
看起来像一个小错误。显然,文件名是宏名称的一部分,并且不会在文件名更改时进行编辑。
Looks like a minor bug. Obviously the file name is part of the macro name and it isn't getting edited on file name change.
我使用VBA在功能区中创建宏按钮。请参阅:
http://msdn.microsoft.com/en-us/library/ee767705.aspx
I create my macro buttons in the ribbon using VBA. See:
http://msdn.microsoft.com/en-us/library/ee767705.aspx
这篇关于MS项目2010标准版上的功能区中的宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!