PRJ98: Resources Not Removed When You Stop Resource Sharing

ID: q185297


The information in this article applies to:


SYMPTOMS

In Microsoft Project 98, when you stop sharing resources from a resource pool, resources that are not assigned in the active project remain in the list of resources for the active project.


WORKAROUND

To work around this behavior, use either of the following methods.

Method 1: Delete the Resources Manually

  1. On the View menu, click Resource Sheet.


  2. On the Window menu, click Split.


  3. Click the first resource and look in the bottom pane to see if any tasks are assigned. If there are no tasks assigned, press DELETE to delete the resource.


Method 2: Run a Macro to Remove Resources with No Tasks Assigned

Microsoft provides programming examples 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 article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/supportnet/refguide/
Use the following macro to delete any resource that is not assigned to a task:

   Sub NoAssignments()
   Dim R As Object
   For Each R In ActiveProject.Resources
       If Not R Is Nothing Then
           If R.Assignments.Count = 0 Then
               R.Delete
           End If
       End If
   Next R
   End Sub 
For additional information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:
Q163435 VBA: Programming Resources for Visual Basic for Applications


STATUS

Microsoft has confirmed this to be a problem in the versions of Microsoft Project listed above.

This problem was corrected in Microsoft Project 98 for Windows, Service Release 1 (SR-1).

For additional information about obtaining and installing SR-1, please see the following article in the Microsoft Knowledge Base:

ARTICLE-ID: Q185102
TITLE : PRJ98: How to Obtain and Install MS Project 98 SR-1

Additional query words:


Keywords          : kbdta projwin 
Version           : WINDOWS:98
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: July 13, 1999