Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Placing checkmark beside menu item

Can anyone tell me how to programatically place a
checkmark beside a menu item? For example, under the View
menu, a checkmark appears beside Formula Bar and Status
Bar if they are visible.

It seems to me I once saw an example of how to do this,
but it's been lost in the mists of time.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Placing checkmark beside menu item

Don,

This is an example of code that sets/unsets a checkmark when a m enu is
clicked, It goes in the macro assigned to the menu item in OnAction.

With Application.CommandBars.ActionControl
If .State = msoButtonUp Then
ActiveWorkbook.Worksheets(.Caption).Visible = xlSheetHidden
.State = msoButtonDown
Else
ActiveWorkbook.Worksheets(.Caption).Visible = xlSheetVisible
.State = msoButtonUp
End If
End With


--
HTH

-------

Bob Phillips
"DonB" wrote in message
...
Can anyone tell me how to programatically place a
checkmark beside a menu item? For example, under the View
menu, a checkmark appears beside Formula Bar and Status
Bar if they are visible.

It seems to me I once saw an example of how to do this,
but it's been lost in the mists of time.

Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Placing a Command Button in a New Tool Menu Office Junior[_2_] Excel Discussion (Misc queries) 2 May 12th 07 04:50 PM
Menu items added with menu item editor in older versions Michael Hoffmann Excel Discussion (Misc queries) 2 January 7th 05 01:40 PM
New menu bar item Juan[_3_] Excel Programming 3 May 15th 04 10:43 AM
New Main menu item Cynthia[_4_] Excel Programming 7 May 9th 04 12:35 AM
placing a pull-down menu at a cell location automatically Ken Nysse Excel Programming 4 October 4th 03 06:51 PM


All times are GMT +1. The time now is 04:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"