View Single Post
 
Old 06-17-2021, 11:24 AM
NitroPress NitroPress is offline Windows 10 Office 2010
Novice
 
Join Date: Nov 2019
Posts: 23
NitroPress is on a distinguished road
Default Set width of Styles pane?

I have a setup macro that puts the Navigation pane on the left, at a defined width, and the Styles pane on the right, again at a preferred width, and then sets the page size. Under Office 2010, I had this working, but with the forced update (I went to 2016), I'm stuck.


Nav pane up, check. Set width using:
Code:
With Application.CommandBars("Navigation")
        .Visible = True
        .Width = iWidth
     End With
...no problem.


Scale page zoom, no problem.


Open Styles pane with:
Code:
Application.TaskPanes(wdTaskPaneFormatting).Visible = True
...no problem.


But even with several years of VBA hacking and Mansfield's fat book at hand, I can't figure out how to set the width of the Styles pane.


Specific answer appreciated; some hints about how to chase the object list for "task panes" (instead of CommandBars, for example) appreciated...
Reply With Quote