J
Jason
Hoping someone can help here. I have to create a series of project files for
repetative projects based off of one master Project Template. The master
Templete is a .mpp file and contains any and all tasks that my other project
could have in them. What I was hoping to do was create an interface
(thinking combo box) that I can put in the tool bar of the Global file so
when I open a new .mpp file I can then just select tasks from the drop down
list and they will populate into my new file. I could then just select the
tasks I want (hoping to just select high level summary tasks and have all
subtasks come with) and modify from there.
To do this I figure I need to create a Combo Box, populate it with the
summary tasks from the Master Project and then once one is seleced copy/past
it into the new file, probably at the current cursor location. Is this
possible? Is there a better way?
The code I have thus far is below, where I am stuck is in populating the
Combo Box with the Summary task names.
Any thoughts would be appreciated.
Dim Counter As Integer
Dim Tsk As Task
Counter = 0
With ComboBox1
ColumnCount = 1
ColumnWidths = 75
AutoSize = True
Height = 15
ListRows = ActiveProject.Tasks.Count
End With
For Each Tsk In ActiveProject.Tasks
If Not Tsk Is Nothing Then
If Tsk.Summary = True Then
XX ComboBox1.AddItem Tsk.Name
Counter = Counter + 1
End If
End If
Next Tsk
End Sub
repetative projects based off of one master Project Template. The master
Templete is a .mpp file and contains any and all tasks that my other project
could have in them. What I was hoping to do was create an interface
(thinking combo box) that I can put in the tool bar of the Global file so
when I open a new .mpp file I can then just select tasks from the drop down
list and they will populate into my new file. I could then just select the
tasks I want (hoping to just select high level summary tasks and have all
subtasks come with) and modify from there.
To do this I figure I need to create a Combo Box, populate it with the
summary tasks from the Master Project and then once one is seleced copy/past
it into the new file, probably at the current cursor location. Is this
possible? Is there a better way?
The code I have thus far is below, where I am stuck is in populating the
Combo Box with the Summary task names.
Any thoughts would be appreciated.
Dim Counter As Integer
Dim Tsk As Task
Counter = 0
With ComboBox1
ColumnCount = 1
ColumnWidths = 75
AutoSize = True
Height = 15
ListRows = ActiveProject.Tasks.Count
End With
For Each Tsk In ActiveProject.Tasks
If Not Tsk Is Nothing Then
If Tsk.Summary = True Then
XX ComboBox1.AddItem Tsk.Name
Counter = Counter + 1
End If
End If
Next Tsk
End Sub