oops
This is a cross-post to a follow-up on the Word forum: https://eileenslounge.com/viewtopic.php ... 14#p308014 and my discussion on the Microsoft site: https://answers.microsoft.com/en-us/mso ... b9ee63955e I am posting here in hope of getting votes and comments on the Microsoft feedback portal. Any responses with suggestions for workarounds should be posted in the Word forum(https://eileenslounge.com/viewtopic.php ... 14#p308014). Thanks.
It is no longer possible to change the visible property of the Styles Pane using vba. Word throws an error.
I've filed a bug report in the feedback Portal.
https://feedbackportal.microsoft.com/fe ... 0d3a7a48db
I invite votes and comments in the Feedback Portal.
The vba command:
worked fine through Word 2013, at least, and now throws an error. Runtime error -21474672259 (80004005) Unspecified errorCode: Select all
application.commandbars("Styles").visible = True
It can also show error Method 'Visible' of object 'CommandBar' failed. -21474672259 (80004005)
This is to change display of the Styles Pane in Word.
in the immediate window will report True or FalseCode: Select all
? application.commandbars("Styles").visible
will give a positionCode: Select all
? application.commandbars("Styles").position
The Visible Property can be changed with other commandbars.
See https://www.msofficeforums.com/word/509 ... 021-a.html
This is a bug and should be fixed