The Style command, as other commands that take arguments (like the style
name in this case) can't be intercepted as far as I know.
There are a handful of built-in commands that apply certain styles
(NormalStyle, ApplyHeading1 ... ApplyHeading3, ApplyListBullet) that can be
intercepted, but Word doesn't run these commands if you assign those styles
from the style dropdown or from the task pane.
The "styles and formatting" task pane is more or less inaccessible to VBA,
so there's really no practical way to do your own stuff if a user applies
some style... unfortunately.
I might resort to creatng a toolbar with a button for the macro:
that might be intuitive enough!
Yes, and hope for the best that users will use it, instead of applying the
style in some other way.
If they are used to the task pane, that might prove difficult.
It's a shame that Word got harder and harder to automate in recent versions.
The task pane just made things worse.
:-( Klaus