+ Reply to Thread
Results 1 to 6 of 6

Remove custom menu

  1. #1
    Guest

    Remove custom menu

    I created a custom menu that loads when a workbook is
    opened. This menu is needed only for this one workbook.
    How, and where, do I write the code to remove the menu
    when the workbook is closed?

    TIA

  2. #2
    Ron de Bruin
    Guest

    Re: Remove custom menu

    Hi

    Use this events in the thisworkbook module

    Private Sub Workbook_Activate()

    End Sub

    Private Sub Workbook_Deactivate()

    End Sub

    Read Chip Pearson's site about Events
    http://www.cpearson.com/excel/Â*events.htm





    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    <[email protected]> wrote in message news:[email protected]...
    >I created a custom menu that loads when a workbook is
    > opened. This menu is needed only for this one workbook.
    > How, and where, do I write the code to remove the menu
    > when the workbook is closed?
    >
    > TIA




  3. #3
    Dave Peterson
    Guest

    Re: Remove custom menu

    Ron,

    I think you have an extra hypen in your link.

    http://www.cpearson.com/excel/events.htm



    Ron de Bruin wrote:
    >
    > Hi
    >
    > Use this events in the thisworkbook module
    >
    > Private Sub Workbook_Activate()
    >
    > End Sub
    >
    > Private Sub Workbook_Deactivate()
    >
    > End Sub
    >
    > Read Chip Pearson's site about Events
    > http://www.cpearson.com/excel/Â*events.htm
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    > <[email protected]> wrote in message news:[email protected]...
    > >I created a custom menu that loads when a workbook is
    > > opened. This menu is needed only for this one workbook.
    > > How, and where, do I write the code to remove the menu
    > > when the workbook is closed?
    > >
    > > TIA


    --

    Dave Peterson

  4. #4
    Ron de Bruin
    Guest

    Re: Remove custom menu

    Thanks Dave



    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    "Dave Peterson" <[email protected]> wrote in message news:[email protected]...
    > Ron,
    >
    > I think you have an extra hypen in your link.
    >
    > http://www.cpearson.com/excel/events.htm
    >
    >
    >
    > Ron de Bruin wrote:
    >>
    >> Hi
    >>
    >> Use this events in the thisworkbook module
    >>
    >> Private Sub Workbook_Activate()
    >>
    >> End Sub
    >>
    >> Private Sub Workbook_Deactivate()
    >>
    >> End Sub
    >>
    >> Read Chip Pearson's site about Events
    >> http://www.cpearson.com/excel/Â*events.htm
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >> <[email protected]> wrote in message news:[email protected]...
    >> >I created a custom menu that loads when a workbook is
    >> > opened. This menu is needed only for this one workbook.
    >> > How, and where, do I write the code to remove the menu
    >> > when the workbook is closed?
    >> >
    >> > TIA

    >
    > --
    >
    > Dave Peterson




  5. #5
    Ron de Bruin
    Guest

    Re: Remove custom menu

    Hi Dave

    Strange that you don't see the - in the thread
    I copy/paste Chip's link from a old thread (Google)


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl



    "Dave Peterson" <[email protected]> wrote in message news:[email protected]...
    > Ron,
    >
    > I think you have an extra hypen in your link.
    >
    > http://www.cpearson.com/excel/events.htm
    >
    >
    >
    > Ron de Bruin wrote:
    >>
    >> Hi
    >>
    >> Use this events in the thisworkbook module
    >>
    >> Private Sub Workbook_Activate()
    >>
    >> End Sub
    >>
    >> Private Sub Workbook_Deactivate()
    >>
    >> End Sub
    >>
    >> Read Chip Pearson's site about Events
    >> http://www.cpearson.com/excel/Â*events.htm
    >>
    >> --
    >> Regards Ron de Bruin
    >> http://www.rondebruin.nl
    >>
    >> <[email protected]> wrote in message news:[email protected]...
    >> >I created a custom menu that loads when a workbook is
    >> > opened. This menu is needed only for this one workbook.
    >> > How, and where, do I write the code to remove the menu
    >> > when the workbook is closed?
    >> >
    >> > TIA

    >
    > --
    >
    > Dave Peterson




  6. #6
    Dave Peterson
    Guest

    Re: Remove custom menu

    I see it in this thread--using Netscape 4.79 as my newsreader.

    Ron de Bruin wrote:
    >
    > Hi Dave
    >
    > Strange that you don't see the - in the thread
    > I copy/paste Chip's link from a old thread (Google)
    >
    > --
    > Regards Ron de Bruin
    > http://www.rondebruin.nl
    >
    > "Dave Peterson" <[email protected]> wrote in message news:[email protected]...
    > > Ron,
    > >
    > > I think you have an extra hypen in your link.
    > >
    > > http://www.cpearson.com/excel/events.htm
    > >
    > >
    > >
    > > Ron de Bruin wrote:
    > >>
    > >> Hi
    > >>
    > >> Use this events in the thisworkbook module
    > >>
    > >> Private Sub Workbook_Activate()
    > >>
    > >> End Sub
    > >>
    > >> Private Sub Workbook_Deactivate()
    > >>
    > >> End Sub
    > >>
    > >> Read Chip Pearson's site about Events
    > >> http://www.cpearson.com/excel/Â*events.htm
    > >>
    > >> --
    > >> Regards Ron de Bruin
    > >> http://www.rondebruin.nl
    > >>
    > >> <[email protected]> wrote in message news:[email protected]...
    > >> >I created a custom menu that loads when a workbook is
    > >> > opened. This menu is needed only for this one workbook.
    > >> > How, and where, do I write the code to remove the menu
    > >> > when the workbook is closed?
    > >> >
    > >> > TIA

    > >
    > > --
    > >
    > > Dave Peterson


    --

    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