Informal Implicit Variables

Variables that are not explicitly declared with Dim statements are said to be implicitly declared. These variables are automatically assigned a data type called Variant. They can hold numbers, strings, and other types of information. You can create an informal variable by assigning some value to a variable name anywhere in your VBA procedure. For example, you implicitly declare a variable in the following way: DaysLeft = 100.

Now that you know how to declare your variables, let's write a procedure that uses them.

0 0

Post a comment