VBA代码 - 根据职业率调整任务栏高度 - MS Project 2010 [英] VBA code - Adjustment of the tasks bars height with the occupational rate - MS Project 2010

查看:62
本文介绍了VBA代码 - 根据职业率调整任务栏高度 - MS Project 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,


我正在尝试找到一种方法来自动调整任务栏的高度,当改变资源的成功率时。即如果X在任务上100%工作,则条形的高度将与在另一个任务上工作50%的条形图的高度相同。
是否可以根据一个资源的职业率改变高度?我使用VBA代码非常糟糕,所以你有能力吗?


我希望我的请求是可以理解的: - )


谢谢你的帮助。


Christelle

解决方案

Christelle,


自定义条形高度可能不起作用,因为只有6种可能的条形。整体酒吧高度可调,但它适用于所有酒吧,而不仅仅是选择酒吧。您可以使用不同的条形颜色,这将为您提供更多选择。
无论哪种方式,Gantt Bars都使用GanttBarFormat方法进行格式化。在VB编辑器中,可以在对象浏览器中找到完整的语法。


希望这会有所帮助。


John


Dears,

I'm trying to find a way to adjust automatically the height of the tasks bars, when changing the occcupational rate of a ressource. i.e. If X works 100% on a task, the height of the bar will be the same as the one who is working 50% on an other task. Is it possible to change the height depending on the occupational rate of one ressource ? I'm very bad in using VBA codes, so do you have one capable to do it ?

I hope my request was understandable :-)

Thanks already for your help.

Christelle

解决方案

Christelle,

Customizing bar height probably won't work since there are only 6 possible bar shapes. Overall bar height is adjustable but it will apply to all bars, not just select ones. You could use a different bar color, that will give you a wider array of choices. Either way, Gantt Bars are formatted using the GanttBarFormat Method. The full syntax can be found in the Object Browser when in the VB Editor.

Hope this helps.

John


这篇关于VBA代码 - 根据职业率调整任务栏高度 - MS Project 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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