Before variables are used in a procedure, it’s recommended to declare them — that is, tell VBA each variable’s data type. Declaring variables makes macro run faster and use memory more efficiently. The default data type, Variant, causes VBA to repeatedly perform time-consuming checks and reserve more memory than necessary.