Article ID: 183829
Article Last Modified on 10/4/2002
Dim oVar1, oVar2 As ObjectThis syntax may appear to be declaring two Object variables, but in this case oVar1 is being implicitly declared as a Variant (the default data type) and oVar2 is being explicitly declared as an Object. The following code will produce two Object variables:
Dim oVar1 As Object Dim oVar2 As Object
-or-
Dim oVar1 As Object, oVar2 As ObjectFor more information about dimensioning variables, from the Visual Basic Editor, click the Office Assistant, type Declaring Variables click Search, and then click to view "Declaring Variables."
176476 OFF: Office Assistant Not Answering Visual Basic Questions
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon vba vbe vb tshoot declaration declaring dimension Byte Boolean Integer Long Currency Single Double Decimal Date String
Keywords: kbhowto kbmacroexample kbdtacode KB183829