COMMON SHARED | DIM SHARED |
IT is used in the main module and may be used for both variables and arrays. | It is used only in the main module to define and share arrays. |
Common Shared declares (and defines) also a global variable as above, and in addition, it can be shared between several code modules | Dim Shared declares (and defines) a global variable inside one code module. |