MOD2000: Code Librarian: Cannot Drag Code from One Category to Another
ID: Q236543
|
The information in this article applies to:
-
Microsoft Office 2000 Developer
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you try to drag a Code Snippet, a Function, a Module, or a Class Module to a different category in a Code Library, the code is not moved or copied, but the category that the code resides in is moved to be a subcategory under the category that you are trying to drag your code into.
RESOLUTION
You can use the Settings tab of the Code Snippet, Function, Module, or Class Module to change or add category associations to a code element in the Code Librarian. To do so, follow these steps:
- Select the code element that you want to change, and on the Code menu, click Modify.
- Click the Settings tab.
- To add an additional category association for the element:
- Click the Add button next to the Categories list.
- In the Add Categories dialog box, select the category that you want to add an association to, and then click Add.
NOTE: If the category that you want to use does not exist, click New to create a new category.
- To remove a category association for the element:
- In the Categories list, click to select the category that you want to remove.
- Click the Remove button next to the Categories list.
- When you finish changing the category associations, click OK to return to the main window.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed
at the beginning of this article.
MORE INFORMATIONSteps to Reproduce Behavior
- In any Microsoft Office 2000 program, press ALT+F11 to switch to the Visual Basic Editor.
- On the Add-Ins menu, click Code Librarian.
- On the File menu, click New and create a new file named Test.mdb.
- Right-click the Code Library icon and click New.
- Type Category1 in the Name text box and click Add.
- Type Category2 in the Name text box, click Add, and then click Close.
- Under Contents, click Category2.
- Right-click in the Code window, and then click New on the shortcut menu.
- On the Code tab, type Test Routine in the Name text box.
- Type the following text in the Code window:
Sub procTest()
MsgBox "Hello World"
End Sub
- Click OK.
- Drag Test Routine from the Code window to Category1 in the Contents window.
Note that Category2 is now a subcategory of Category1. Furthermore, the code has not been moved or has not been copied to Category1.
Additional query words:
pra
Keywords : kbdta modCodeLib
Version : :
Platform : WINDOWS
Issue type : kbbug
|