Variables

  • A variable is a value you are ask the computer to store in its memory while the program is running.
Rules for naming your variable
  • The name of a variable must begin with a letter
  • Cannot have a period
  • Can have up to 255 characters.
  • Must be unique inside of the procedure or the module it is used in.
  • To declare a variable, type the Dim keyword, like this:
Dim
  • A variable cannot be used if it has not been primarily declared.
Option Explicit
  • This can also be done automatically for each file by checking the Required Variable Declaration in the Options dialog box

Last modified: Monday, 9 April 2012, 5:17 PM