Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conceal functions and subroutines?
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. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conceal functions and subroutines?
At the top of each module add this line of code:
Option Private Module Seth -----Original Message----- 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. . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conceal functions and subroutines?
try adding the line
option private module as the TOP line in a module. -- Don Guillett SalesAid Software "raj" wrote in message ... 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. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conceal functions and subroutines?
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 "raj" wrote in message ... 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. . |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conceal functions and subroutines?
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Conceal worksheets | Excel Discussion (Misc queries) | |||
turn off subroutines | Excel Discussion (Misc queries) | |||
How do I conceal the unused range from the scroll bar? | Excel Discussion (Misc queries) | |||
Duplicate Subroutines | Excel Programming | |||
Run method for subroutines | Excel Programming |