Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Feb 2003
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Toolbars deactivated on open (97)

    I want to deactive the toolbar menu on opening of a document and active toolbar memu on closing of document. I have the following, but do not how to deactivate and then activate:
    Sub DisableToolbarMenu()
    CommandBars("Toolbar List").Enabled = False
    End Sub
    Sub EnableToolbarMenu()
    CommandBars("Toolbar List").Enabled = True
    End Sub

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Toolbars deactivated on open (97)

    You should call your procedures from within a DocumentChange application event. See <post#=203498>post 203498</post#> for an example of how to create a DocumentChange event.

    StuartR

Posting Permissions

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