L
Larry
Sorry if I'm not using the terminology correctly.
I already have several module-wide variables (created by Dim statements)
which enable information returned in one macro to be used in another
macro--a neat capability. But these variables only seem to work because
there already happens to be some public declarations at the top of the
module, like this:
Public Declare Sub Sleep Lib "kernel32" _
(ByVal dwMilliseconds As Long)
These public declarations have nothing to do with the Dim statements,
yet they enable them to work.
I want to learn how to set up a module-wide variable if there is not
already a Public declaration. In other words, if there is nothing at
the top of the module, and I want to create a module-wide Dim statement
there, how do I do that?
Thanks,
Larry
I already have several module-wide variables (created by Dim statements)
which enable information returned in one macro to be used in another
macro--a neat capability. But these variables only seem to work because
there already happens to be some public declarations at the top of the
module, like this:
Public Declare Sub Sleep Lib "kernel32" _
(ByVal dwMilliseconds As Long)
These public declarations have nothing to do with the Dim statements,
yet they enable them to work.
I want to learn how to set up a module-wide variable if there is not
already a Public declaration. In other words, if there is nothing at
the top of the module, and I want to create a module-wide Dim statement
there, how do I do that?
Thanks,
Larry