it is a button that runs a macro, and your answer looks authoritative to me.
However, I know less than you think. It looks like I am supposed to plop
these lines into the macro, and I will try this. But can you tell me a
little more about what each line does.
Many thanks
P
Trying to make my question very specific. Here's a *macro* to convert a
selection to Sentence case. When I hover over the button, it says LC where I
wish it would say "sentence case".
Sub LC()
' LC Macro sets sentence case
Selection.Range.Case = wdTitleWord
End Sub
So what would I type in to do that?
P
> it is a button that runs a macro, and your answer looks authoritative to me.
> However, I know less than you think. It looks like I am supposed to plop
[quoted text clipped - 21 lines]
> >
> > > How do I create a hovering tooltip for a macro button; Word 2002
Charles Kenyon - 03 Feb 2005 16:15 GMT
The quick and dirty way to do it is to name your macro SentenceCase. The
default tooltip for the button will be "Sentence Case." I know that you can
also use vba to assign a tooltip other than the name to a particular button,
but I've never bothered to learn how to do this. It would, though, be a
separate macro that you run once to assign the tooltip, not everytime your
referenced macro is run.

Signature
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
> Trying to make my question very specific. Here's a *macro* to convert a
> selection to Sentence case. When I hover over the button, it says LC where
[quoted text clipped - 36 lines]
>> >
>> > > How do I create a hovering tooltip for a macro button; Word 2002
koolnuts - 03 Feb 2005 16:25 GMT
How are you creating the button on the toolbar / CommandBar?
There are at least two ways to do this:
1. is through code, which then allows you to change the tooltiptext
property, eg.
Sub MyCreateCommandBar
Dim cbar As CommandBar
Set cbar = CommandBars.Add(Name:="CommandBarName", Position:=msoBarTop,
Temporary:=False)
With CommandBars.Item("CommandBarName").Controls
' Add cmdToggleBold button
.Add Type:=msoControlButton, ID:=1
.Item(1).Caption = "Toggle Bold"
.Item(1).DescriptionText = "Toggle Bold"
.Item(1).TooltipText = "some text some text some text some text"
.Item(1).FaceId = 113
.Item(1).OnAction = "cmdToggleBold"
.Item(1).Enabled = True
End With
cbar.Visible = True
cbar.Enabled = True
set cbar = nothing
End Sub
You would then call MyCreateCommandBar from an AutoExec or AutoOpen or
AutoNew macro which ever is appropriate.
2. is by customising a commandbar in Word, eg.
Tools->Customise->Commands->Macros->select a macro name and drag it to the
CommandBar. Unfortunately this does not allow you to change the TooltipText
property other than by using code.
CommandBars("CommandBarName").Controls("ControlName").TooltipText = "Click
for help on ..."
which you would then also put into a AutoExec or AutoOpen or AutoNew macro
so it would setup the button as soon as the document is opened, executed
(AutoExec for loading global templates / documents) or created (AutoNew).
> Trying to make my question very specific. Here's a *macro* to convert a
> selection to Sentence case. When I hover over the button, it says LC where I
[quoted text clipped - 31 lines]
> > >
> > > > How do I create a hovering tooltip for a macro button; Word 2002
p - 03 Feb 2005 16:53 GMT
Thanx, I really appreciate your help and time.
P
> How are you creating the button on the toolbar / CommandBar?
>
[quoted text clipped - 73 lines]
> > > >
> > > > > How do I create a hovering tooltip for a macro button; Word 2002