BUG: Cannot Reuse the Name of a UserForm

ID: Q244238


The information in this article applies to:
  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK), versions 5.0, 6.0, 6.1
  • Microsoft Office 2000
  • Microsoft Office 97 for Windows


SYMPTOMS

When a user deletes a Microsoft Visual Basic for Applications (VBA) UserForm, and then creates a new UserForm and tries to give it the same name as the old UserForm, VBA displays an error:

File/Path Access Error


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Run any VBA-enabled application (such as Word 97).


  2. Show the VBA IDE and insert a UserForm.


  3. In the Properties window, change the name of the UserForm to Test1.


  4. Delete the UserForm from the VBA project. When prompted to export the UserForm, choose No.


  5. Add a new UserForm.


  6. Change the name to Test1 (the same name as before), and note that VBA displays the error:


  7. Path/file access error

Additional query words:

Keywords : KbVBA kbSDKVBA kbGrpDSO kbDSupport
Version : WINDOWS:2000,97; winnt:5.0,6.0,6.1
Platform : WINDOWS winnt
Issue type : kbbug


Last Reviewed: December 17, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.