Microsoft KB Archive/172920
Article ID: 172920
Article Last Modified on 10/10/2006
- Microsoft Excel 95a
- Microsoft Excel 5.0c
- Microsoft Excel 5.0a for Macintosh
This article was previously published under Q172920
When you record a macro to toggle the Lock Text check box of an edit box on a dialog sheet, you may receive the following error message when you run te macro:
If you click Goto on the Macro Error dialog box, a line similar to the following is selected:
.LockedText = True
Even though Microsoft Excel records the property, there is no LockedText property for the EditBox object in the Microsoft Excel Object Library.
You must clear the Lock Text check box for an edit box manually. To do this, follow these steps:
- Right-click the edit box.
- Click Format Object on the shortcut menu.
- On the Protection tab, click to clear the Lock Text check box, and then click OK.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel 97 for Windows and Microsoft Excel 98 Macintosh Edition.
For additional information, please see the following article in the Microsoft Knowledge Base:
130108 XL Err Msg: Unable to Set the Text Property of Editbox Class
Additional query words: 5.00a 5.00c 7.00a XL5 XL7 XL Err Msg
Keywords: kbbug kberrmsg kbmacro kbprogramming KB172920