Search : in
By :

VB Macro in Mircrosoft Project

Last answer on Feb 9, 2009 8:58:49 am GMT Schedule_VBN00b, on Feb 9, 2009 6:03:28 am GMT 
 Report this message to moderators

Hello,

I'm trying to create a Customized Interim Baseline Save Macro.

I was able to get a macro that saves baseline details only to a start and finish field:

BaselineSave All:=True, Copy:=0, Into:=1

Now the next task I would like it to do is to copy the percent complete field into a text field.
I'm a complete newbie to Visual Basic and I'm trying to automate a lot of my Microsoft project tasks.

I dug up some documentation online and came up with this:

Dim t as task
Dim ts as tasks

Set Ts = ActiveProject.Tasks
intTcounter = 0

If not t is nothing then
t.PercentageComplete = t.Text7
intTcounter = intTcounter + 1
End If
next t
'Display message
MsgBox ("Macro done" & Chr(13) & intTcounter & " Task Complete")


This returns the number of tasks in my project file but does not copy the percentage complete value in the text field. I think I need to convert the Percentage complete to text somewhow so that text 7 can save a "0%" value. I'm pretty sure this is easy for VB programmers out there!!!

Ahhh please help!! I'm sure you guys know this is a simple issue - if you know how!!!

Also - I need to find a way to show up a message box on closing the file that it compares the current dates to the baseline fields and if there is a discrepancy or change, a notice saying "current dates not longer align with baseline - are you sure you want to save?"....


Any assistance will be greatly appreciated.

Regards

Configuration: Windows XP
Internet Explorer 6.0

Best answers for « VB Macro in Mircrosoft Project » in :
Free alternative to Microsoft Project ShowFree alternative to Microsoft Project Microsoft Project is a software project management highly valued for managing large projects, to achieve the (Gantt chart or PERT network) There is no free software as comprehensive as Microsoft...
Adding your website to the Open Directory Project ShowAdding your website to the Open Directory Project Extract recommendations ODP or DMOZ Step One – Preconditions Step 2 - Pre Search Step 3 - Choose a category Step 4 - Proposal Site What happens next? Updating your Website Inclusion of...
Download GANTT Project ShowGanttProject is a free project management tool allowing to realize GANTT diagrams to plan a project and manage the resources. GanttProject is a complete tool proposing import / export features towards Microsoft Project, as well as export functions...
Download Project Planner Reader ShowDescription: Project Planner Reader is a tool to read PMP files created by Ms-Project. by the help of this software, you can share your project with colleagues. This software is easy to use, you simply convert your project plans using the interface...
Introduction to project management ShowProject management Project refers to all actions to be taken in order to meet a defined need within fixed deadlines. Thus, because a project is a temporary action with a beginning and an end, mobilizing identified resources (human and material)...
Project management methodology ShowProject management - The need for a clear methodology "Project management" refers to the methodological organization put in place to ensure that the work done by the contractor meets the expectations of the client, and that it is delivered within...
Project stages ShowThe stages of the project In order to be managed in an atmosphere of quality, a project must pass through various phases, at the end of which milestones should be defined. Each stage is related to a deliverable and a validation based on a specific...

1

 ciboxpen, on Feb 9, 2009 8:58:49 am GMT
  • +2

Hi,
try this link to know how to create VB macros:
support.microsoft.com/kb/843304

Reply to ciboxpen