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.
我正在为 Project 2010 编写一个宏(在 VBA 中),我想要完成的一件事是设置项目优先级。
我环顾了 MSDN,但似乎找不到任何关于此的信息 - 没有允许我这样做的属性、方法或对象。我是否忽略了某些东西,或者真的没有办法编辑项目优先级?
Project priority 字段由于某种原因没有显示在对象浏览器或 Intellisense 中,但是如果您在调试时查看 Project 对象,您会看到它,您可以使用以下代码进行设置:
Dim proj As Project Set proj = Application.ActiveProject proj.Priority = 100
在 Project 2010 64 位中测试,更新后的优先级出现在 UI 中的 Project -> Project Information -> Priority 字段中。