[EDIT: I still think this is a bug, but have found a workaround using the TaskPanes collection wdTaskPanesFormatting which will respond to a change in visible.] There is still no way to change the width of the pane using vba.
This report was filed as feedback in the feedback portal.
https://feedbackportal.microsoft.com/feedback/idea/56f2dbca-2c02-ee11-a81c-000d3a7a48db (deleted on Feedback Forum?)
New report filed at:
https://feedbackportal.microsoft.com/feedback/idea/1a0b63aa-d4d1-ef11-95f5-6045bdb154fd
I invite votes and comments.
The vba command:
application.commandbars("Styles").visible = Trueworked fine through Word 2013, at least, and now throws an error. *Runtime error -21474672259 (80004005) Unspecified error**It can also show error Method 'Visible' of object 'CommandBar' failed. -21474672259 (80004005)*This is to force display of the Styles Pane in Word.? application.commandbars("Styles").visible in the immediate window will report True or False? application.commandbars("Styles").position will give a positionThe Visible Property can be changed with other commandbars.See https://www.msofficeforums.com/word/50936-display-navigation-styles-panes-365-2021-a.htmlThis is a bug and should be fixed