BUG: Cannot Reuse the Name of a UserForm (244238)



The information in this article applies to:

  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK) 5.0
  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK) 6.0
  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK) 6.1
  • Microsoft Visual Basic for Applications 5.0
  • Microsoft Visual Basic for Applications 6.0

This article was previously published under Q244238

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 that this is a bug in the Microsoft products that are 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:
    Path/file access error

Modification Type:MajorLast Reviewed:6/29/2004
Keywords:kbbug kbpending KB244238