Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: How do I add 'Checked' option to menu Item

  1. #1
    New Member
    Join Date
    Mar 2002
    Location
    mhague
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have this code below which creates a custom menu in my Excel sheet. How do I make the Menu Item 'Checked' when the user selects it?
    Thx - Marcie

    MenuBars(xlWorksheet).Menus.Add "&General Ledger", "&Window"
    With MenuBars(xlWorksheet).Menus("General Ledger").MenuItems
    .Add "&All Departments ", OnAction:="AllDepartments"
    End With

  2. #2
    New Member
    Join Date
    Mar 2002
    Location
    mhague
    Posts
    14
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Never mind - figured it out:

    MenuBars(xlWorksheet).Menus("General Ledger").MenuItems("Set EOY Flag").Checked = True

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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