|
| |||||||||
| Tags: ms project, vb script |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| [ask] about VB Script + Ms. Project
hi guys, i'm new guy in here..but i really needs your help.. how to make algorithm for cumulative work at current date (at Task Usage view) and write it to another field like Text01? regards, |
|
#2
| |||
| |||
| Re: [ask] about VB Script + Ms. Project
Hello anak_baru, In the Task Usage view, you can display the Cumulative Work : right Cclick in a yellow cell.... Otherwise, you can write a VBA procedure using the TimeScaleData method to do that. Gérard Ducouret "anak_baru" <anak_baru.3o5k3e@DoNotSpam.com> a écrit dans le message de news: anak_baru.3o5k3e@DoNotSpam.com... > > hi guys, i'm new guy in here..but i really needs your help.. > > how to make algorithm for cumulative work at current date (at Task > Usage view) and write it to another field like Text01? > > regards, > > > -- > anak_baru > ------------------------------------------------------------------------ > anak_baru's Profile: http://forums.techarena.in/members/anak_baru.htm > View this thread: [ask] about VB Script + Ms. Project > > http://forums.techarena.in > |
|
#3
| |||
| |||
| Re: [ask] about VB Script + Ms. Project Quote:
|
|
#4
| |||
| |||
|
For example, a VBA procedure which copies the actual Work into Baseline10: Gérard Ducouret For Each oTâche In ActiveProject.Tasks i = 0 For Each Ass In oTâche.Assignments i = i + 1 Deb = oTâche.Assignments(i).Start Fin = oTâche.Assignments(i).Finish Set TSVs = oTâche.Assignments(i).TimeScaleData(Deb, Fin, Type:=pjAssignmentTimescaledActualWork, _ TimeScaleUnit:=pjTimescaleDays, Count:=1) Set TSVs2 = oTâche.Assignments(i).TimeScaleData(Deb, Fin, Type:=pjAssignmentTimescaledBaseline10Work, _ TimeScaleUnit:=pjTimescaleDays, Count:=1) For Each TSV In TSVs Debug.Print i & " Début période: " & Format(TSV.StartDate, "Long Date"), "Travail réel: " & Val(TSV.Value) / 60 & "h", oTâche.Name, Ass.ResourceName, "Index de tranche :" & TSV.Index 'NB : Val(TSV.Value) convert the empty string to a zero IndexCell = TSV.Index For Each TSV2 In TSVs2 If TSV2.Index = IndexCell Then TSV2.Value = Val(TSV.Value) '/ 60 End If Next TSV2 Next TSV Next Ass Next oTâche |
|
#5
| |||
| |||
| Re: [ask] about VB Script + Ms. Project Quote:
|
|
#6
| |||
| |||
| Re: [ask] about VB Script + Ms. Project Quote:
really thanks,. |
|
#7
| |||
| |||
|
anak, Hereafter is the declaration of my dimensions for this procedure: Sub CopyActuals() Dim TSV As TimeScaleValue, TSV2 As TimeScaleValue Dim TSVs As TimeScaleValues, TSVs2 As TimeScaleValues Dim oTâche As Task Dim Ass As Assignment Dim Deb As Date, Fin As Date Dim NomRess As String, RessID As Integer Dim i As Integer, Hrs_jr As Long, HowMany As Long, IndexCell As Integer |
|
#8
| |||
| |||
| Re: [ask] about VB Script + Ms. Project
failed for summary task..:( some summary task failed (error result), some summary task success.. can u help me again? can u add my Yahoo Messenger? erry_32@yahoo.com |
|
#9
| |||
| |||
| Re: [ask] about VB Script + Ms. Project
anak_baru, If your project is not confidential, you can send it to me : you have my email address, just REMOVETHIS and THAT. And explain me what you want to do with this VBA procédure. Gérard Ducouret "anak_baru" <anak_baru.3ok7vb@DoNotSpam.com> a écrit dans le message de news: anak_baru.3ok7vb@DoNotSpam.com... > > failed for summary task..:( > some summary task failed (error result), some summary task success.. > > can u help me again? > > can u add my Yahoo Messenger? erry_32@yahoo.com > > > -- > anak_baru > ------------------------------------------------------------------------ > anak_baru's Profile: http://forums.techarena.in/members/anak_baru.htm > View this thread: [ask] about VB Script + Ms. Project > > http://forums.techarena.in > |
|
#10
| |||
| |||
| Re: [ask] about VB Script + Ms. Project Quote:
but..where i must sent my file, i need your email? |
|
#11
| |||
| |||
| Re: [ask] about VB Script + Ms. Project
Erry, 1° - Most of your Summaries don't have any resource (which is complying with the best practices). But your VB Script works only when there is at least a resource which generates work. 2° - In the Number1 custom field, renamed "Target 2 (Value)" you have a long formula which returns sometimes a result as a string such as "Not Yet Started". So you get a #Error. Hope this helps, Gérard Ducouret |
|
#12
| |||
| |||
| Re: [ask] about VB Script + Ms. Project Quote:
2. i know that, i have fixed it.. |
|
#13
| |||
| |||
| Re: [ask] about VB Script + Ms. Project
anyone can help me? please.. |
|
#14
| |||
| |||
| Re: [ask] about VB Script + Ms. Project
anak_baru wrote: > anyone can help me? please.. You might find it easier to export the work to Excel and do the sums there. |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "[ask] about VB Script + Ms. Project" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Project Prof 2007 not opening when new project created in Project Server website | GroundLoop | Microsoft Project | 1 | 30-01-2011 08:59 AM |
| Word 2008 + bibfuse: no script in script menu | deval4u | Software Development | 5 | 06-04-2009 01:53 PM |
| Sub-Project - Project Summary Tasks showing on a Master Project | Steve Scott | Microsoft Project | 3 | 16-01-2009 11:14 PM |
| Problem with script in order to open another script in an extra window | Samsher | Software Development | 2 | 14-01-2009 01:25 PM |
| Microsoft Project crashes when trying to open a project from Project Server | bophommarath@yahoo.com | Microsoft Project | 1 | 09-05-2005 02:39 PM |