How can I concatenate fields in MS Project?

C

ChuckB

Would like to be able to concatenate WBS with Task Name field. I can easily
do this
in Excel but cannot figure out how to do in MS Project.
 
B

Bob Segrest

I'm not sure what you are trying to do...

Where do you want to put the concatenated result?

When do you want to do this?


Would like to be able to concatenate WBS with Task Name field. I can easily
do this
in Excel but cannot figure out how to do in MS Project.

Bob Segrest, PMP
BSegE LLC
(540) 937-5875
http://www.BSegE.com
 
E

Earl Lewis

Chuck,

Do you want to do in a view or in a VBA procedure?

As far as fields in a view go you can concatenate doing something like this in a custom field definition:
[WBS] & ": " & [Name]

In VBA you could do something like this to get it all at once as a string:

Function CatWBS2Task() as String
Dim strWBS As String
Dim strTask As String
For Each Task In ActiveProject.Tasks
strWBS = Task.WBS
strTask = Task.Name
strCat = strCat & strWBS & ": " & strTask & vbCrLf
Next
CatWBS2Task = strCat
End Sub

You could also write the above routine as a subroutine that would update a target field with the concatenation.

Hope that helps.

Earl
Would like to be able to concatenate WBS with Task Name field. I can easily
do this
in Excel but cannot figure out how to do in MS Project.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top