Integer and Long : Long « Data Type « VBA / Excel / Access / Word






Integer and Long

 
Sub longDemo()
    Dim intNumber As Integer
    Dim lngLongNumber As Long
    intNumber = 123
    lngLongNumber = 123456
End Sub

 








Related examples in the same category

1.Declare a variable of the appropriate type (a Long variable) to contain the user's choice