Global module

A

Al

Hi all
I need to define:
Public RunWhen As Double
and Public Const cRunIntervalSeconds = 120 '2 minutes
in a Global module. How is that done? Could not find any
info in the help.
Many thanks
Al
 
R

Rob van Gelder

A global module? I think this is just a standard module that doesn't have
Option Private Module specified (and by default it doesn't)
 
P

Paul Robinson

Hi Al
A Public variable declared outside a sub at the top of any normal code
module is available to all other modules.
regards
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top