none
Add-in. How to update the "duration" field of an existing task? RRS feed

  • Question

  • Used by:
      - Ms Project 2016 Pro Desktop;
      - Add-in. C # or VBA;
     
    I have:
      - task id;
      - field name;
      - new end of the field.
     
    How to update the "duration" field of an existing task?
    I would be grateful if someone shares the code, or at least the logic, how this can be implemented.
    Saturday, January 4, 2020 9:54 PM

All replies

  • You need to understand how Project works, so manually do what you think you need by editing the duration field directly, editing work or resource units.

    Then record a macro of you doing what you want to get the relevant VBA code. Unless the task is happening now, use any method that does not set a task constraint. Task constraint change the critical path, require manual updating and cost you time and effort.

    Happy programming


    Rod Gill
    Author of the one and only Project VBA Book and VBA developer.
    www.project-systems.co.nz

    Saturday, January 4, 2020 11:05 PM
    Moderator