ms-project

Changing background row color according to task levels in MS Project VBA

冷暖自知 提交于 2020-01-05 13:14:19
问题 Hello I have been trying to figure out a code, so as to color different rows depending upon their task levels. I am new to VBA in MS Project. I have a code which I found online, but it only colors the text in the task column. Sub ColorFormatOL() Dim t As Task Dim i As Integer SelectTaskColumn i = 0 For Each t In ActiveSelection.Tasks If Not t Is Nothing Then i = i + 1 If t.Summary Then SelectRow row:=i, Columrowrelative:=False Select Case t.OutlineLevel Case 1 FontEx Color:=pjRed Case 2

Changing background row color according to task levels in MS Project VBA

*爱你&永不变心* 提交于 2020-01-05 13:13:40
问题 Hello I have been trying to figure out a code, so as to color different rows depending upon their task levels. I am new to VBA in MS Project. I have a code which I found online, but it only colors the text in the task column. Sub ColorFormatOL() Dim t As Task Dim i As Integer SelectTaskColumn i = 0 For Each t In ActiveSelection.Tasks If Not t Is Nothing Then i = i + 1 If t.Summary Then SelectRow row:=i, Columrowrelative:=False Select Case t.OutlineLevel Case 1 FontEx Color:=pjRed Case 2

How to Import Excel Worksheet into Microsoft Project?

江枫思渺然 提交于 2020-01-02 07:14:27
问题 I want to import the following Microsoft Excel worksheet into Microsoft Project (2010): Essentially, the worksheet has tasks and subtasks in column A, Start Dates in column B, and Finish Dates in column C. The conditional highlighting you see is based off the start and finish dates. There are no macros, only formulas, so the spreadsheet is saved as a normal Excel workbook. I tried to open the workbook in Project. It correctly finds the source worksheet name, but it doesn't recognize any

Loading specific test file for debugging MSProject Add-In

核能气质少年 提交于 2019-12-24 08:59:07
问题 I am developing a MSProject add-in with VSTO and I have a question about debugging. How do I use the Start Option->Command line arguments to load a specific MS Project file? I have tried using [drive:][path]filename.mpp but the file doesn't load. Otherwise everything is fine. I can load a file manually and debug properly. Thanks for any assistance. 回答1: You can use the following command line example to load MS Project with a specific MPP file: winproj "c:\projects\Annual Report Preparation

Office Javascript API: MS Project identify parent task id and sub task id

孤人 提交于 2019-12-24 07:38:23
问题 I am working on building MS Project Web Add-in. Using the below function as a base with other functions I am able to retrieve the task, id and resource name . // Get the maximum task index, and then get the task GUIDs. async getTasks(guids: string[]): Promise<any[]> { return await Promise.all( guids.map(async guid => await this.getTask(guid)) ); } async getTaskGuids(maxIndex: number): Promise<string[]> { const guids = []; for (let i = 0; i <= maxIndex; i++) { guids.push(await this.getTaskGuid

ms project vba associate task with row

本小妞迷上赌 提交于 2019-12-24 03:34:28
问题 Update: Answered below I've built a Form in my MS Project VBA that has some formatting buttons on it, particularly a "Done" button that changes the font of the selected cells to Grey and Strikethrough. The subroutine below works fine, except... Sub SetTaskNameFontDone() Dim T As Task If Not (ActiveSelection.Tasks Is Nothing) Then For Each T In ActiveSelection.Tasks ' Test for blank task row If Not (T Is Nothing) Then SelectTaskField Row:=T.ID, Column:="Name", RowRelative:=False Font32Ex Color

How do I automatically create Summary and Subtasks in Microsoft Project using VBA

喜欢而已 提交于 2019-12-23 15:56:36
问题 So I have a Timeline in Microsoft Excel which contains a variety of information. I created an array of my own custom type which read in this data but now I need to output my array onto Project. My array consists of a custom datatype as following: Type customtype Summary Name (The subtask would go under their respective summary task) Number of subtasks Another array called TaskList() This array called TaskList() would then hold as many subtasks inside as the number of tasks. All subtasks in

Microsoft Project VSTO C# - Event Listener when changed

纵饮孤独 提交于 2019-12-20 06:38:49
问题 I'm having a little trouble I'm trying to write a handler for a Project 2013 addin to listen for changes that occur in a cell in MS Project. If the cell is changed, I want to then enter a flag into one of the hidden cells Any ideas? 回答1: You'll need to add an event handler like this: private void MyEventHandler(Task task, PjField field, object newValue, ref bool cancel) { // My code here } As part of your Add-In's setup you need to add your event handler: Application.ProjectBeforeTaskChange +

MS Project 2013: display resources on summary tasks

血红的双手。 提交于 2019-12-19 11:58:13
问题 Is there a way to configure MS Project 2013 so that it displays in a resource column (eg, resource initials) of the Gantt Chart view of summary tasks the UNION of all resources assigned to its leaf subtasks. Say for example that I have a summary task S with 2 subtasks S1 & S2, S2 being itself divided into subsubtasks S21 & S22. Say also that I have allocated resources R1,R2 to S1, resources R2,R3 to S21 and resource R4 to S22. With my current configuration, the resource initial column of both

How to create .mpp file in java?

痞子三分冷 提交于 2019-12-13 13:28:27
问题 I am able to create . mpx file by using mpxj library in java. I need write ( create ) . mpp file in java can any one suggest me please . 回答1: I maintain MPXJ, and the short answer to your enquiry is that, at present, MPXJ does not write MPP files. The main reason for this is simply that despite the effort which has gone into understanding the MPP file structure, there is still a great deal of it which is not well understood, hence it is difficult to reliably generate. The other issue is that