The information in this article applies to:
SUMMARYIn Microsoft Visual Basic for Applications, if an object has a Value property, then this property is the default value for the object. If an object does not have the Value property, then that object does not have a default value. MORE INFORMATION
The default value of an object is the value that is returned when you use
the object in a procedure, without specifying a property or method for the
object.
When you run this macro, the formula that the name refers to is displayed in a
dialog box for each name in the active workbook.
CollectionsWhen you use a collection in a Visual Basic macro, you can use the Item method to return a part of the collection. The Item method is the default value for a collection. For example, the following code
is equivalent to:
The Item method is the default value for a collection in the same way
that the Value property is the default value for those objects that
have the Value property. Note that you can use the Item method with any
collection.
REFERENCESFor more information about the Value property, in the Visual Basic Editor, click
Microsoft Visual Basic Help on the Help menu, type
Value Property (Excel) in the Office Assistant or the Answer Wizard, and
then click Search to view the topic. Additional query words:
Keywords : kbprg kbdta PgmCtrlsStd KbVBA |
Last Reviewed: November 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |