Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Hiding internal subroutines from user

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christopher Brewster - 18 Mar 2005 14:13 GMT
A project I've created uses many subroutines that are of no use to users,
and shouldn't be invoked externally. But they don't take arguments so they
appear in the list of macros. I can't call them private because they are
called across modules. How do I keep them from appearing?

Christopher Brewster
Jonathan West - 18 Mar 2005 14:43 GMT
>A project I've created uses many subroutines that are of no use to users,
> and shouldn't be invoked externally. But they don't take arguments so they
> appear in the list of macros. I can't call them private because they are
> called across modules. How do I keep them from appearing?

If the routine is only called from other routines in the same module, make
it private.

If the routine is called from other modules, add an optional parameter to it
which you don't make any use of.

Either of these measures will prevent the routine from appearing in the list
of macros.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org 


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.