A Variant allows VBA to make its own decision as to what type of data it is holding: string and integer
Sub var() Dim varMyData as Variant varMyData = "This is a Variant" varMyData = 12 End Sub