Microsoft KB Archive/220613

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

Article ID: 220613

Article Last Modified on 10/11/2006

-

APPLIES TO


 * Microsoft Excel 2000 Standard Edition
 * Microsoft Outlook 2000 Standard Edition
 * Microsoft PowerPoint 2000 Standard Edition
 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q220613



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 that this is a problem in the Microsoft products that are listed at the beginning of this article.

