QP School

Full Version: Datatypes in VBA
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Datatypes define the type of data a variable can hold. VBA supports various datatypes, including:

6.1. Integer:
Used to store whole numbers between -32,768 to 32,767.

6.2. Long:
Used to store larger whole numbers between -2,147,483,648 to 2,147,483,647.

6.3. Single:
Used to store single-precision floating-point numbers with decimals.

6.4. Double:
Used to store double-precision floating-point numbers with decimals.

6.5. Boolean:
Used to store True or False values.

6.6. String:
Used to store text or alphanumeric data.

6.7. Date:
Used to store date and time values.