Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Hidding macros

I have an Excel program with several macros. When I click on
Tools-macros-macros I see all my macros listed, but some of them are only
subroutines used by other macros. How can I keep certain macros from beeing
listed when I list the macros?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Hidding macros

One way is to add:

Option Private Module

to the top of each of the modules (not each procedure--just at the top of each
module).



jerry chapman wrote:

I have an Excel program with several macros. When I click on
Tools-macros-macros I see all my macros listed, but some of them are only
subroutines used by other macros. How can I keep certain macros from beeing
listed when I list the macros?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Hidding macros

All my macros are in one module, so I don't want to hide the module just
some of the macros in it.
"Dave Peterson" wrote in message
...
One way is to add:

Option Private Module

to the top of each of the modules (not each procedure--just at the top of

each
module).



jerry chapman wrote:

I have an Excel program with several macros. When I click on
Tools-macros-macros I see all my macros listed, but some of them are

only
subroutines used by other macros. How can I keep certain macros from

beeing
listed when I list the macros?


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Hidding macros

Declare the procedure as Private. E.g.,

Private Sub AAA()
MsgBox "OK"
End Sub

Note that the procedure can still be executed from the Macro
dialog if you know the name. It just won't appear in the list.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"jerry chapman" wrote in message
...
All my macros are in one module, so I don't want to hide the
module just
some of the macros in it.
"Dave Peterson" wrote in message
...
One way is to add:

Option Private Module

to the top of each of the modules (not each procedure--just at
the top of

each
module).



jerry chapman wrote:

I have an Excel program with several macros. When I click on
Tools-macros-macros I see all my macros listed, but some
of them are

only
subroutines used by other macros. How can I keep certain
macros from

beeing
listed when I list the macros?


--

Dave Peterson





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hidding #DIV/0! In Cell Susan Excel Worksheet Functions 1 May 23rd 07 10:36 PM
Hidding #DIV/0! In Cell Harlan Grove[_2_] Excel Worksheet Functions 0 May 23rd 07 07:41 PM
Hidding #DIV/0! In Cell Harlan Grove[_2_] Excel Worksheet Functions 0 May 23rd 07 07:37 PM
Hidding Tabs Aviator Excel Discussion (Misc queries) 1 December 15th 04 04:55 PM
Hidding rows with 0 as the value saweetarab Excel Programming 1 November 6th 03 12:44 PM


All times are GMT +1. The time now is 10:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"