在Project 2007中分配项目的所有者 [英] Assign Owner of a Project in Project 2007

查看:448
本文介绍了在Project 2007中分配项目的所有者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道无论如何在VBA宏中以编程方式从Project Pro

I would like to know if there is anyway to programatically in a VBA macro to assign the owner of a project from Project Pro

推荐答案

Kathy分配项目的所有者,

Kathy,

我不确定你所说的"所有者"是什么意思但据我所知,用户只能使用Project对象的BuiltInDocumentProperties属性设置文件的高级属性。尽管VBA帮助文件中的属性仅为
,但您可以设置"作者"和"作者"。具有以下属性:

I'm not sure exactly what you mean by "owner" but as far as I can tell a user can only set the Advanced Properties of a file using the BuiltInDocumentProperties property of the Project object. Although the VBA help file says properties are read only, you can for example set the "Author" property with the following:

activeproject.BuiltinDocumentProperties(3)=" Kathy"

activeproject.BuiltinDocumentProperties(3) = "Kathy"

如果您在Project Server环境中并且想要设置作业所有者,以下语法应该有效(我无法测试它,因为我不使用Project Server)。注意:Owner属性仅适用于企业资源

If you are in a Project Server environment and want to set an assignment owner, the following syntax should work (I can't test it because I don't use Project Server). Note: the Owner property is only applicable for enterprise resources

ActiveProject.Tasks(index).Assignments(index).Owner =" Kathy"

ActiveProject.Tasks(index).Assignments(index).Owner = "Kathy"

希望这会有所帮助。

John


这篇关于在Project 2007中分配项目的所有者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆