Can I apply a fomular in entry table fields?

  • Thread starter åŠæ–°ä¸æ—§
  • Start date
Å

åŠæ–°ä¸æ—§

Hi, can I apply a formular in "Publish" field of Gantt Entry Table such as
Publish='Yes' if %Completed='100%'?


Thanks in advance,

JJin
 
Å

åŠæ–°ä¸æ—§

Thanks Jan, in case of I want to automatically set <publish> field= "no" for
all 100% completed task, do you have any suggestion for implementing that
request?

JJin
 
M

Mike Glen

Jonathan, can you review your posting process as we seem to be getting two
of each of them :)

Mike Glen
Project MVP
 
Å

åŠæ–°ä¸æ—§

Hi, Jonathan, could you please give a sample macro for this request?
Thanks in advance,

JJin
 
J

Jonathan Sofer [MVP]

Here you go JJin,

Sub SetPuplishedToNoForCompletedTasks()
Dim t As Task

For Each t In ActiveProject.Tasks
If Not (t Is Nothing) Then
If t.Summary = False And t.PercentComplete = 100 Then
t.IsPublished = "No"
End If
End If
Next t
End Sub

You might want to implement this so it is called on the save or publish
event or train your users to call this subroutine after they update their
schedules.

Hope this helps, Jonathan
 

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