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. Advertising

  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. Advertising

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. Brien Clark
    Replies:
    2
    Views:
    79
    Brien Clark
    Jun 10, 2005
  2. Brien Clark
    Replies:
    5
    Views:
    74
    Sharkbyte
    Jun 11, 2005
  3. Peter Hallett

    Using Unique Values and Unique Records

    Peter Hallett, Jul 17, 2009, in forum: Access Forms
    Replies:
    13
    Views:
    127
    Peter Hallett
    Jul 22, 2009
  4. Steffen

    Selecting rows by selecting Task.ID

    Steffen, Oct 30, 2006, in forum: Project Pro
    Replies:
    1
    Views:
    142
    Mike Glen
    Oct 30, 2006
  5. David
    Replies:
    1
    Views:
    64
    David
    May 25, 2006
Loading...

Share This Page