As I understand it, it goes as follows
Go to Tools, Library Organiser
Click New
Type in a file name and save as a .bas file
This will open the basic editor
enter code
Global Variables are created in a Declare, End Declare Section
This basic source file is then included in you libraries and is generated at run time. Good Luck.