XL97: UserControl Property Code Example Doesn't Work ProperlyLast reviewed: March 13, 1998Article ID: Q157555 |
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 INFORMATIONIn 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. Microsoft provides examples of Visual Basic for Applications procedures 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. The Visual Basic procedures in this article are provided 'as is' and Microsoft does not guarantee that they can be used in all situations. While Microsoft support engineers can help explain the functionality of a particular macro, they will not modify these examples to provide added functionality, nor will they help you construct macros to meet your specific needs. If you have limited programming experience, you may want to consult one of the Microsoft Solution Providers. Solution Providers offer a wide range of fee-based services, including creating custom macros. For more information about Microsoft Solution Providers, call Microsoft Customer Information Service at (800) 426-9400.
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" (without the quotation marks) 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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |