The information in this article applies to:
SYMPTOMSYou may receive the following error when you run a Visual Basic for Applications macro that accesses an OLEObject on a worksheet:
CAUSE
To access an OLE object on a worksheet using the OLEObjects method, you
must specify the drawing object name for the object. The drawing object
name is the name that appears in the Name box when the worksheet object is
selected.
RESOLUTIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspIf you change the Name property for an OLE object on your worksheet, you should also change the drawing object name so that the names are the same. The following steps illustrate how this problem may occur and how you can correct it.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem no longer occurs in Microsoft Excel 2000. MORE INFORMATIONThe Name box is the box at the left end of the formula bar that identifies the selected cell, chart item or drawing object. To display the Name box, click Options on the Tools menu, click the View tab, select Formula Bar and click OK. Additional query words: XL97 8.00 checkbox command button text box textbox option optionbutton list listbox combo combobox toggle spin spinner scroll scrollbar label image ActiveX
Keywords : kberrmsg kbprg kbdta kbdtacode xlui KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |