OFF2000: Error Message: "Could Not Set the Name Property..." When Naming Control in UserForm

ID: Q220613


The information in this article applies to:
  • Microsoft Office 2000


SYMPTOMS

When you create a UserForm in Microsoft Visual Basic for Applications, the following error message appears:

Could not set the name property. Ambiguous name.
Then your insertion point becomes a circle with a diagonal line through it, and the Visual Basic Editor appears to stop responding (hang). You can press the ESC key to return to a normal insertion point.


CAUSE

This problem occurs when the following are true:

  • You set the Name property of a control to the name of an existing control.


  • -and-

  • You then click another control on the UserForm rather than pressing ENTER.



WORKAROUND

To work around this problem, always press ENTER when you set the Name property of a control on a UserForm.


STATUS

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


REFERENCES

For more information about UserForms, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type UserForms in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Additional query words: OFF2000

Keywords : kbdta
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug


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