Hello
I should have been more explicit in my original request below. I have
changed ³greying out² to ³Disabling² but I do want the text to be faded out
(grayed) as the inbuilt Word commands are when they are unavailable.
Also I am using Word 2004 on a Mac but my templates are used on PCs.
Thanks
On 9/8/05 09:51, in article BF1E2D3E.4341%Sol@solapache.com, "Sol Apache"
<Sol@solapache.com> wrote:
> I have a few menu and toolbar commands which are macros intended to be used
> in tables only. In order that users won't complain that the macro doesn't
[quoted text clipped - 11 lines]
>
> Thanks for any help.
Klaus Linke - 20 Aug 2005 00:32 GMT
Hi Sol,
In principle, you could write an event handler for the SelectionChange
event, check if the selection is in a table (or formatted in a particular
style), then toggle the buttons.
But not even the MS programmers do that for the built-in controls for styles
(which would be nice especially for character styles)... They probably are
wary of the performance hit and/or the additional complications introduced
by the event handler.
So as Doug Robbins already said in another group, I wouldn't try, but simply
put up a message box if some command doesn't work in some context.
Greetings,
Klaus
> Hello
>
[quoted text clipped - 31 lines]
>>
>> Thanks for any help.