Conceal functions and subroutines?

  • Thread starter Thread starter raj
  • Start date Start date
R

raj

Hello and please help a novice if possible.

I have programs consisting of many functions and
subroutines located in several different modules within a
file.

When a user clicks the fx (function button) on the
toolbar, all my functions show up in the list of available
functions. Also, my subroutines show up in the list of
macros when the user menus to [Tools][Macro][Macros].

Please note that I can't use "Private" at the function or
subroutine level because I need to make calls across
modules. How can I overcome this? Or do I need to change
the structure of my code altogether?

Your assistance and/or example code would be most
appreciated. Thanks in advance.
 
At the top of each module add this line of code:

Option Private Module

Seth
 
try adding the line
option private module as the TOP line in a module.
 
You both just took care of all my woes!

Thank you to all.

-----Original Message-----
try adding the line
option private module as the TOP line in a module.

--
Don Guillett
SalesAid Software
(e-mail address removed)
Hello and please help a novice if possible.

I have programs consisting of many functions and
subroutines located in several different modules within a
file.

When a user clicks the fx (function button) on the
toolbar, all my functions show up in the list of available
functions. Also, my subroutines show up in the list of
macros when the user menus to [Tools][Macro][Macros].

Please note that I can't use "Private" at the function or
subroutine level because I need to make calls across
modules. How can I overcome this? Or do I need to change
the structure of my code altogether?

Your assistance and/or example code would be most
appreciated. Thanks in advance.


.
 
ALL your woes? You must have a nice life.
glad to help

--
Don Guillett
SalesAid Software
(e-mail address removed)
raj said:
You both just took care of all my woes!

Thank you to all.

-----Original Message-----
try adding the line
option private module as the TOP line in a module.

--
Don Guillett
SalesAid Software
(e-mail address removed)
Hello and please help a novice if possible.

I have programs consisting of many functions and
subroutines located in several different modules within a
file.

When a user clicks the fx (function button) on the
toolbar, all my functions show up in the list of available
functions. Also, my subroutines show up in the list of
macros when the user menus to [Tools][Macro][Macros].

Please note that I can't use "Private" at the function or
subroutine level because I need to make calls across
modules. How can I overcome this? Or do I need to change
the structure of my code altogether?

Your assistance and/or example code would be most
appreciated. Thanks in advance.


.
 

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

Back
Top