Copy data field to field

G

glen.e.mettler

I want to programmatically copy the Predecessor data into text field 19
(which I have renamed "Pred"). I want to do it without having either
field as a column in a view.

Is that possible?

Glen
 
J

JulieS

Hi Glen,

Try the following code:
-------------------------------
Sub PredToTask19()

Dim tsk As Task
Dim tsks As Tasks
Set tsks = ActiveProject.Tasks
For Each tsk In tsks
If Not tsk Is Nothing Then
tsk.Text19 = tsk.Predecessors
End If
Next tsk
End Sub
--------------------------------------
I hope this helps. Let us know how you get along.

Julie
Project MVP

Visit http://project.mvps.org/ for the FAQs and additional information
about Microsoft Project
 
J

Jan De Messemaeker

Hi,

99% oif Project's VBA can be done without even knowing what is the active
view.
ONLY things like Font work by the selection.
 
Top