Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2007

Tip: Looking for answers? Try searching our database.

Command Bar ID

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
05hammer - 15 Oct 2007 19:13 GMT
I have the ORK .ADM templates added into a GPO.  I need to prevent
users from using the Send To.. Command Bar.  It's not listed in the
predefined "Disable command bar and menu items" so I have to go to the
custom "Disable command bar and menu items" section, and it wants the
commands bar ID to disable it.  I don't have Visual Basic for
Applications, and it isn't looking like I will be getting it any time
soon.  Does anyone happen to know the command bar ID for "Send To..."
and/or any of it's sub-commands?

Thanks for your time.
Lene Fredborg - 15 Oct 2007 21:36 GMT
The IDs and captions of the controls in the "Send to" commandbar are:

1 - ID 3738:  &Mail Recipient
2 - ID 6139:  Original &Sender...
3 - ID 5958:  Mail Re&cipient (for Review)...
4 - ID 2188:  M&ail Recipient (as Attachment)...
5 - ID 259:  &Routing Recipient...
6 - ID 938:  &Exchange Folder...
7 - ID 3728:  &Online Meeting Participant
8 - ID 1707:  Recipient using a &Fax Modem...
9 - ID 7392:  Recipient using Internet Fa&x Service...
10 - ID 3251:  Microsoft Office &PowerPoint

The list above is a result of running the following macro:

Dim n As Long
For n = 1 To CommandBars("Send to").Controls.Count
   With CommandBars("Send to").Controls(n)
       ActiveDocument.Range.InsertAfter n & " - ID " & .ID & ":  " &
.Caption & vbCr
   End With
Next n

Hope this helps.

Signature

Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word

> I have the ORK .ADM templates added into a GPO.  I need to prevent
> users from using the Send To.. Command Bar.  It's not listed in the
[quoted text clipped - 6 lines]
>
> Thanks for your time.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.