MOD2000: "Get Object from SourceSafe" Command Gets New Object (234840)



The information in this article applies to:

  • Microsoft Office 2000 Developer
  • Microsoft Visual SourceSafe for Windows 6.0

This article was previously published under Q234840

SYMPTOMS

If you click the Get Object from SourceSafe command to get an object that is already in your local copy of the current project, another copy of the object is retrieved, renamed, and treated like a new object that is not yet under source code control. For example, Sheet1 would be renamed Sheet11.

CAUSE

The VBA Source Code Control add-in allows you to get an object from the controlling Visual SourceSafe project even though the object is already in the current VBA project.

RESOLUTION

Do not invoke the Get Object from SourceSafe command to update an object that is already in the current project. If you need a new copy of an existing object, right-click the object in the Project Explorer, and then click Get Latest Version.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Install Microsoft Visual SourceSafe and Microsoft Excel 2000.
  2. Create new workbook in Excel.
  3. In the new workbook, create a new sheet named Test.
  4. Open the Visual Basic Editor (ALT+F11).
  5. If VBA Source Code Control is on the Add-ins menu, go to step 5. If it is not, do the following:
    1. On the Add-ins menu, click Add-in Manager.
    2. In the Add-in Manager dialog box, click VBA Source Code Control.
    3. Under Load Behavior, click to select the Loaded/Unloaded check box.
    4. Click OK.
  6. On the Add-ins menu, point to VBA Source Code Control, and then click Add Project to SourceSafe. In SourceSafe, add all of the objects. After the project is added, quit SourceSafe.
  7. On the Add-ins menu, point to VBA Source Code Control, and click Get Object from SourceSafe.
  8. In SourceSafe, select the Test sheet, and then click Get. The Add Files to SourceSafe dialog box appears with the object Test1 listed.
  9. Click Add. Note that the object is retrieved with the new name, Test1, and is now an extra object in the SourceSafe project.

Modification Type:MajorLast Reviewed:5/2/2001
Keywords:kbbug KB234840