Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP-
 
Posts: n/a
Default Weird movement of floating menus

Hi Noel,

If I want this present on all toolbars, do I need to add the
title/header to all instances of the macros?

You mean, if you want a button to run this macro from all
toolbars? Yes, you'd need to drag it from
Tools/Customize/Commands to each toolbar.

Or, you could use a macro to make the change. Here's a bit of
sample code that could do that (but note that I'm not testing
it myself, because I don't have a button I want to add to
every toolbar). However, you may find it adds the command in
unexpected places...

So, before starting Word, make a copy of your Normal.dot
template and put it somewhere safe. Then if you don't like the
result you can always revert back to your original state
without too much pain :-)

Remember to check the things in "quotes" and change them to
match your system.

Sub AddButtonToAllBars()
Dim cBar as Office.CommandBar
Dim cButton as Office.CommandBarButton

CustomizationContext = NormalTemplate
For each cb in Application.CommandBars
Set cButton = cBar.Controls.Add(msoControlButton)
cButton.OnAction = "Macro name"
cButton.Caption = "Lock toolbar"
Next
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8
2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help system for Word should tell how to turn on full menus Graham Mayor Microsoft Word Help 1 January 25th 06 02:11 PM
How to delete these corrupted menus from word 2k3 terry Microsoft Word Help 4 November 18th 05 04:39 PM
Weird Behaviour : Track Changes Adds Weird Text While Document is Protected Hammad Microsoft Word Help 0 July 25th 05 02:44 PM
Cropmarks and weird menus - previous solutions given do not work Jen Microsoft Word Help 4 March 29th 05 03:35 PM
Template Pull-down menus do not load with Template Mkate Microsoft Word Help 1 December 8th 04 06:52 PM


All times are GMT +1. The time now is 07:00 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"