Microsoft KB Archive/234840

= MOD2000: "Get Object from SourceSafe" Command Gets New Object =

Article ID: 234840

Article Last Modified on 5/2/2001

-

APPLIES TO


 * Microsoft Office 2000 Developer Edition
 * Microsoft Visual SourceSafe 6.0 Standard Edition

-



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.



Steps to Reproduce the Behavior
 Install Microsoft Visual SourceSafe and Microsoft Excel 2000. Create new workbook in Excel. In the new workbook, create a new sheet named Test. Open the Visual Basic Editor (ALT+F11). If VBA Source Code Control is on the Add-ins menu, go to step 5. If it is not, do the following: <ol style="list-style-type: lower-alpha;"> On the Add-ins menu, click Add-in Manager.</li> In the Add-in Manager dialog box, click VBA Source Code Control.</li> Under Load Behavior, click to select the Loaded/Unloaded check box.</li> Click OK.</li></ol> </li> 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.</li> On the Add-ins menu, point to VBA Source Code Control, and click Get Object from SourceSafe.</li> In SourceSafe, select the Test sheet, and then click Get. The Add Files to SourceSafe dialog box appears with the object Test1 listed.</li> Click Add. Note that the object is retrieved with the new name, Test1, and is now an extra object in the SourceSafe project.</li></ol>

Additional query words: pra

Keywords: kbbug kbpending KB234840

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.