The information in this article applies to:
SYMPTOMSIn Microsoft Excel 97 Visual Basic Help, the example code provided for the UserControl property does not work properly. CAUSEThe example code for the UserControl property assumes that the UserControl property applies to Workbook objects, when the property actually applies only to the Application object. WORKAROUNDInstead of using the UserControl Property example, use the examples shown in the "More Information" section if you want to use the UserControl property. MORE INFORMATIONMicrosoft 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.aspIn Microsoft Excel 97, you can use the UserControl property to determine whether or not an instance of Microsoft Excel opened through OLE Automation will continue to run when its object is released. By default, the UserControl property has a value of False. The following examples demonstrate how you can use the UserControl property in a macro in Visual Basic or Visual Basic for Applications. Example One: Leave UserControl Set to False
Example Two: Set UserControl Set to True
Notes About Using the UserControl Property
REFERENCESFor more information on the UserControl property of Microsoft Excel 97, type the word UserControl in a Visual Basic module. Select the word, and press F1 to view the "UserControl Property" help topic. Additional query words: XL97 8.0 vbe
Keywords : kbprg kbdta kbdtacode KbVBA xlhelp |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |