Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


Workaround

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

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


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.

↑ Back to the top


Keywords: KB220613, kbpending, kberrmsg, kbbug, kbarchive, kbnosurvey

↑ Back to the top

Article Info
Article ID : 220613
Revision : 5
Created on : 1/12/2015
Published on : 1/12/2015
Exists online : False
Views : 596