2007/03/16

我終於會在MS Project的甘特圖依資源標色啦!!

應該有不少人用過微軟的Project來拉一些計劃的時程表,裡面最常用的當然是甘特圖。

可是我一直很不高興,因為不知道怎麼把那些長條圖好好的標上不同顏色:



請對照以下,是不是好多了呢? 原來... 這是做得到的哦!!
(Project真是比我們想像中的強大很多吧~~~)


以下是我查到這個做法的過程,及作法的詳解。

1. 用google查 "microsoft project" "different color "different resources"
2. 到這一頁
http://www.mcse.ms/archive/index.php/t-2312718.html
3. 發現裡面有個Proejct達人 Rod Gill Project MVP 他有個站
http://project.mvps.org
裡面這頁用短短一小段就解決了問題~~

(原文在最後)
我直接寫中文翻譯,建議可以對照我剛剛做的Flash看:
flash demo:






1. 右鍵點「資源名稱」→「插入欄…」
2. 選「旗標1」→「標題」,輸入資源名稱
3. 3.新增的欄右鍵點「自訂欄位…」→按「公式」
4. 公式輸入: IIF([資源名稱]="xxx",Yes,No) xxx就是資源名稱如Bob
輸入完按三個「確定」
(此時已經自動依實際狀況把Bob選為「是」了)
5.格式→長條圖樣式…
選「任務」那一項「剪下」再「貼上」
(目的是複製)
再在最下面第一個空白前「貼上」
(複製出一項新的「任務」)
6.更改新一項的「名稱」為資源名稱,
調整想要的「外觀」(色彩、圖樣、形狀)
7.在「任務種類」,先選至「旗標1」打勾後,
選至「標準」打X刪除,及「非要徑」也打X刪除
最後會呈現「旗標1」
8.按下「確定」後看到此資源已用新樣子呈現囉!

如果需要範例檔,這裡可以下載。

原文:
31. Customizing Task Bars - Project 2000
In Project 2000, you can customize task bars so that they have, for example, different colours for special purposes when, for instance, you want to distinguish between different resources, departments, contracts, etc. From the Gantt view, assuming a resource called Fred, first you need to detect tasks assigned to Fred by using a Flag field - click on the Resource Names column heading to highlight it, then Insert/Column/select Flag1 and in the Title field call it Fred. Then right click the Fred column heading and select Customize Fields./Formula button and enter an If formula: IIf ([Resource Names]="Fred",Yes,No), /OK/OK/OK. You should now see a Yes for Fred's tasks.
Then, from the Gantt view, Format/Bar Styles. make a copy of the Task bar - Cut Row/ Paste Row (to put it back again) scroll to the bottom and in the next blank space Paste Row again. Change the task name to Fred, then change its colour/pattern/end shapes to suit. Click in the Show For.Tasks cell, delete Normal,Noncritical, click the drop-down arrow and select Flag1, OK/OK. All bars for Fred will now show the selected appearance.
As there are 20 Flag fields, this procedure can be repeated for up to 20 different selections.

No comments: