VBA Data Type Summary
VBA Data Type Summary
A data type is the characteristic of a variable that determines what kind of data it can hold. Data types
include those in the following table as well as user-defined types and specific types of objects.
Set intrinsic data types
The following table shows the supported data types, including storage sizes and ranges.
-922,337,203,685,477.5808 to
Currency (scaled integer) 8 bytes
922,337,203,685,477.5807
+/-
79,228,162,514,264,337,593,543,950,335
with no decimal point
-1.79769313486231E308 to -
4.94065645841247E-324 for negative values
Double (double-precision
8 bytes
floating-point)
4.94065645841247E-324 to
1.79769313486232E308 for positive values
-9,223,372,036,854,775,808 to
9,223,372,036,854,775,807
LongLong (LongLong integer) 8 bytes
Valid on 64-bit platforms only.
Data type Storage size Range
10 bytes + string
String (variable-length) 0 to approximately 2 billion
length
22 bytes + string
Variant (with characters) length (24 bytes Same range as for variable-length String
on 64-bit systems)