+ Reply to Thread
Results 1 to 3 of 3

enable right click

  1. #1
    Registered User
    Join Date
    08-09-2005
    Posts
    42

    enable right click

    hello,

    I use the following code to hide all command bars in my excel file:
    Private Sub Workbook_Open()

    Dim oCB As CommandBar
    For Each oCB In Application.CommandBars
    oCB.Enabled = False 'here to change
    Next oCB

    mFormulaBar = Application.DisplayFormulaBar
    Application.DisplayFormulaBar = False
    End Sub


    but it also disable a mouse right click.

    Can anyone help how to enable right click when other command bars are hide.

    thanks a lot

    tommy

  2. #2
    Norman Jones
    Guest

    Re: enable right click

    Hi Tommy,

    Try:

    Application.CommandBars("Cell").Enabled = True


    ---
    Regards,
    Norman


    "tommy_gtr" <[email protected]> wrote in
    message news:[email protected]...
    >
    > hello,
    >
    > I use the following code to hide all command bars in my excel file:
    > Private Sub Workbook_Open()
    >
    > Dim oCB As CommandBar
    > For Each oCB In Application.CommandBars
    > oCB.Enabled = False 'here to change
    > Next oCB
    >
    > mFormulaBar = Application.DisplayFormulaBar
    > Application.DisplayFormulaBar = False
    > End Sub
    >
    > but it also disable a mouse right click.
    >
    > Can anyone help how to enable right click when other command bars are
    > hide.
    >
    > thanks a lot
    >
    > tommy
    >
    >
    > --
    > tommy_gtr
    > ------------------------------------------------------------------------
    > tommy_gtr's Profile:
    > http://www.excelforum.com/member.php...o&userid=26089
    > View this thread: http://www.excelforum.com/showthread...hreadid=492981
    >




  3. #3
    Registered User
    Join Date
    08-09-2005
    Posts
    42

    it works

    great :-)))

    it works ...

    Thank you


    tommy

+ 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