Dimension - declare a new variable.
Syntax Dim varname [As DataType] Static varname [As DataType] Key varname Required. Name of the variable; follows standard variable naming conventions.
When using a Dim statement in a procedure, put the Dim statement at the beginning of the procedure, this ensures it will be available everywhere within the procedure.
If you don't specify a data type or object type, and there is no Def_type_ statement in the module, the variable is Variant by default.
Dim intTotalEmployees As Integer
Dim varField As Variant
Dim strName As String
Dim AnotherVar, boolChoice As Boolean
In this case, AnotherVar is of type Variant because its type is omitted.
“Is not the whole world a vast house of assignation of which the filing system has been lost?” ~ Quentin Crisp
MkDir - Create directory