The information in this article applies to:
SYMPTOMSIn Microsoft Project, when you run a macro to return the UniqueID property of a resource assignment (Assignments collection), an incorrect number may be returned. CAUSEThis problem occurs if you use the Add method to return the unique ID for a resource assignment if the resource has been assigned to the task multiple times. For example, if you run the following macro
the second dialog box that should return the unique ID of the second
resource assignment (2) displays the value 1 instead.
The Add method returns the first assignment for the task when you assign a resource multiple times. WORKAROUNDSTo work around this problem, use the specific Assignments object to return the UniqueID property as in the following example:
Microsoft provides examples of Visual Basic procedures for illustration
only, without warranty either expressed or implied, including but not
limited to the implied warranties of merchantability and/or fitness for a
particular purpose. This Visual Basic procedure is provided 'as is' and
Microsoft does not guarantee that it can be used in all situations.
Microsoft does not support modifications of this procedure to suit customer
requirements for a particular purpose.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. REFERENCESFor more information about the "Add Method," choose the Search button in the Visual Basic Reference and type addchoose the Show Topics button, select the topic, and choose Go To. Additional query words: ole automation
Keywords : kbcode kbprg |
Last Reviewed: October 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |