You can declare a global variable at the top of a module with the format
A variable declared at the top of a module is global to that module, and if Public is used it is global everywhere.
You can print your code by right-clicking on the project name (i.e., file name) in the VBA development environment and selecting Print. You can print to paper, or print to a PDF if you have a PDF print driver installed (I think Windows comes with one). I do not know of a way to dump all the code to a single plain text file, but maybe there is a way. You can also export individual modules, which are .bas files but these are plain text files with a one-line header.
P.S. My first job was FORTRAN programming in 1979
Bookmarks