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?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Sreejith

    TASK DURATION(extra task in table)

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

    Finding / selecting a task

    Adam Schmidt, Nov 24, 2003, in forum: Project VBA
    Replies:
    2
    Views:
    173
    GĂ©rard Ducouret
    Nov 24, 2003
  4. SigCool
    Replies:
    1
    Views:
    129
    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:
    233
  6. Replies:
    1
    Views:
    211
    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:
    1,684
  8. Darren_S15

    Copy A Task by Unique ID

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