+ Reply to Thread
Results 1 to 4 of 4

Hidding macros

  1. #1
    jerry chapman
    Guest

    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. #2
    Dave Peterson
    Guest

    Re: 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. #3
    jerry chapman
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    > 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. #4
    Chip Pearson
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    > 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" <[email protected]> wrote in message
    > news:[email protected]...
    >> 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1