S
shmuel
In Word 2007 (with SP2 installed), I used the macro recorder to generate code
that changes the "styles to show" options in the Styles task pane. However,
it seems that the wrong code was generated.
When I chose "Recommended", macro recorder wrote
ActiveDocument.FormattingShowFilter = wdShowFilterStylesAvailable
instead of
ActiveDocument.FormattingShowFilter = wdShowFilterFormattingRecommended
When I chose "In use", macro recorder wrote (correctly)
ActiveDocument.FormattingShowFilter = wdShowFilterStylesInUse
When I chose "In current document", macro recorder wrote
ActiveDocument.FormattingShowFilter = wdShowFilterStylesAll
instead of
ActiveDocument.FormattingShowFilter = wdShowFilterStylesAvailable
When I chose "All styles", macro recorder wrote
ActiveDocument.FormattingShowFilter = wdShowFilterFormattingInUse
instead of
ActiveDocument.FormattingShowFilter = wdShowFilterStylesAll
I determined the correct values by trying the different commands in a macro
and observing what setting was changed in Word.
Any idea what is going on here? Is this is a known bug in Word that can be
duplicated on other PC's?
Thanks for any help.
that changes the "styles to show" options in the Styles task pane. However,
it seems that the wrong code was generated.
When I chose "Recommended", macro recorder wrote
ActiveDocument.FormattingShowFilter = wdShowFilterStylesAvailable
instead of
ActiveDocument.FormattingShowFilter = wdShowFilterFormattingRecommended
When I chose "In use", macro recorder wrote (correctly)
ActiveDocument.FormattingShowFilter = wdShowFilterStylesInUse
When I chose "In current document", macro recorder wrote
ActiveDocument.FormattingShowFilter = wdShowFilterStylesAll
instead of
ActiveDocument.FormattingShowFilter = wdShowFilterStylesAvailable
When I chose "All styles", macro recorder wrote
ActiveDocument.FormattingShowFilter = wdShowFilterFormattingInUse
instead of
ActiveDocument.FormattingShowFilter = wdShowFilterStylesAll
I determined the correct values by trying the different commands in a macro
and observing what setting was changed in Word.
Any idea what is going on here? Is this is a known bug in Word that can be
duplicated on other PC's?
Thanks for any help.