+ Reply to Thread
Results 1 to 3 of 3

Checkmark on Menu Item

  1. #1
    DonB
    Guest

    Checkmark on Menu Item

    I want to be able to put a checkmark beside a menu item when the user selects
    that item from the menu. For example, under the View menu when the user
    selects Task Pane the pane appears and a checkmark appears beside the 'Task
    Pane' on the menu.

    I would expect something like CommandBarControl.checked but it's not that
    straightforward.

    I used to know how to do this but the method has slipped my mind. Please help.

    Thank you.

  2. #2
    Bob Phillips
    Guest

    Re: Checkmark on Menu Item

    This is an example of a macro assigned to a commandbar that would do this


    With Application.CommandBars.Action*Control
    If .State = msoButtonUp Then
    ActiveWorkbook.Worksheets(.Cap*tion).Visible = xlSheetHidden
    .State = msoButtonDown
    Else
    ActiveWorkbook.Worksheets(.Cap*tion).Visible = xlSheetVisible
    .State = msoButtonUp
    End If
    End With



    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "DonB" <[email protected]> wrote in message
    news:[email protected]...
    > I want to be able to put a checkmark beside a menu item when the user

    selects
    > that item from the menu. For example, under the View menu when the user
    > selects Task Pane the pane appears and a checkmark appears beside the

    'Task
    > Pane' on the menu.
    >
    > I would expect something like CommandBarControl.checked but it's not that
    > straightforward.
    >
    > I used to know how to do this but the method has slipped my mind. Please

    help.
    >
    > Thank you.




  3. #3
    DonB
    Guest

    Re: Checkmark on Menu Item

    Thanks, Bob. I'll give it a try.
    DonB

    "Bob Phillips" wrote:

    > This is an example of a macro assigned to a commandbar that would do this
    >
    >
    > With Application.CommandBars.ActionÂ*Control
    > If .State = msoButtonUp Then
    > ActiveWorkbook.Worksheets(.CapÂ*tion).Visible = xlSheetHidden
    > .State = msoButtonDown
    > Else
    > ActiveWorkbook.Worksheets(.CapÂ*tion).Visible = xlSheetVisible
    > .State = msoButtonUp
    > End If
    > End With
    >
    >
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "DonB" <[email protected]> wrote in message
    > news:[email protected]...
    > > I want to be able to put a checkmark beside a menu item when the user

    > selects
    > > that item from the menu. For example, under the View menu when the user
    > > selects Task Pane the pane appears and a checkmark appears beside the

    > 'Task
    > > Pane' on the menu.
    > >
    > > I would expect something like CommandBarControl.checked but it's not that
    > > straightforward.
    > >
    > > I used to know how to do this but the method has slipped my mind. Please

    > help.
    > >
    > > Thank you.

    >
    >
    >


+ 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