Selecting a Task using the Unique ID?

Discussion in 'Project VBA' started by metaldogo70@gmail.com, May 19, 2006.

  1. Guest

    I know I can select a task if I knew the ID of a task. It would be
    something like the following:

    ActiveProject.Tasks(1).Select

    But, there's no way to ensure that the IDs will stay the same in
    Microsoft Project. What never changes is the Unique ID.

    Is there a simple way to select a task with a specified Unique ID OR do
    I have to search each task until I get to the one I want?

    Thanks!
    JR
     
    , May 19, 2006
    #1
    1. Advertisements

  2. activeproject.tasks.uniqueid(xxx)
    HTH

    --
    Jan De Messemaeker, Microsoft Project Most Valuable Professional
    http://users.online.be/prom-ade/
    For FAQs: http://www.mvps.org/project/faqs.htm
    <> schreef in bericht
    news:...
    > I know I can select a task if I knew the ID of a task. It would be
    > something like the following:
    >
    > ActiveProject.Tasks(1).Select
    >
    > But, there's no way to ensure that the IDs will stay the same in
    > Microsoft Project. What never changes is the Unique ID.
    >
    > Is there a simple way to select a task with a specified Unique ID OR do
    > I have to search each task until I get to the one I want?
    >
    > Thanks!
    > JR
    >
     
    Jan De Messemaeker, May 19, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sreejith

    TASK DURATION(extra task in table)

    Sreejith, Aug 14, 2003, in forum: Project VBA
    Replies:
    1
    Views:
    131
    Jack D.
    Aug 14, 2003
  2. Eugene Rokhlin
    Replies:
    0
    Views:
    101
    Eugene Rokhlin
    Sep 19, 2003
  3. Adam Schmidt

    Finding / selecting a task

    Adam Schmidt, Nov 24, 2003, in forum: Project VBA
    Replies:
    2
    Views:
    95
    GĂ©rard Ducouret
    Nov 24, 2003
  4. SigCool
    Replies:
    1
    Views:
    89
    Jan De Messemaeker
    Dec 17, 2004
  5. Yoav

    Selecting a task in a master project

    Yoav, Jul 2, 2006, in forum: Project VBA
    Replies:
    2
    Views:
    184
  6. Replies:
    1
    Views:
    179
    Mike Glen
    Oct 2, 2007
  7. imti

    Get task object from known Unique ID

    imti, Dec 18, 2007, in forum: Project VBA
    Replies:
    2
    Views:
    973
  8. Darren_S15

    Copy A Task by Unique ID

    Darren_S15, Nov 12, 2009, in forum: Project VBA
    Replies:
    2
    Views:
    286
    Mike Glen
    Nov 12, 2009
Loading...