A
Andrew Savikas
I'm familiar with modifying/intercepting built-in
commands, using macros named with the command's name
(i.e., FileSave, FormatStyle, etc.).
And I understand that you can go to the Macros dialog,
select from the list of built-in commands, and create a
macro from there.
Here's my question:
If I go to the list of Word Commands, and Select "Style",
then tell Word to create that in my current template, I
get this:
Sub Style()
'Styles macro
'Applies an existing style or records a style by example
WordBasic.Style
End Sub
Under what circumstances would this macro be called (I
recognize that WordBasic.Style is invalid without a
style)?
I'd like to intercept the application of a specific style,
and can't find any information on modifying built-in
commands that require parameters (like Style or Font).
Any help would be appreciated.
Thanks,
Andrew Savikas
commands, using macros named with the command's name
(i.e., FileSave, FormatStyle, etc.).
And I understand that you can go to the Macros dialog,
select from the list of built-in commands, and create a
macro from there.
Here's my question:
If I go to the list of Word Commands, and Select "Style",
then tell Word to create that in my current template, I
get this:
Sub Style()
'Styles macro
'Applies an existing style or records a style by example
WordBasic.Style
End Sub
Under what circumstances would this macro be called (I
recognize that WordBasic.Style is invalid without a
style)?
I'd like to intercept the application of a specific style,
and can't find any information on modifying built-in
commands that require parameters (like Style or Font).
Any help would be appreciated.
Thanks,
Andrew Savikas