Article ID: 114857
Article Last Modified on 10/11/2006
Sub Default_Name_Property()
Dim n as Object
For Each n In Names
'Display default property of each Name
'(Value property) in Names collection
MsgBox n
Next
End Sub
When you run this macro, the formula that the name refers to displays in a
dialog box for each name in the active workbook.
ActiveWorkbook.Worksheets.Item(1)is equivalent to:
ActiveWorkbook.Worksheets(1)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.
Value Property
Item Property
Additional query words: 5.00c 8.00 97 98 XL97 XL7 XL5 XL
Keywords: kbinfo kbprogramming KB114857