vba - changing width of taskpanes - Office 365 Dec 2020

User avatar
Charles Kenyon
5StarLounger
Posts: 609
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

vba - changing width of taskpanes - Office 365 Dec 2020

Post by Charles Kenyon »

The following commands work differently. The one for the Navigation Pane works, that for the Styles Pane does not.

Code: Select all

application.CommandBars("Styles").Width  = 550
application.CommandBars("Navigation").width = 550
For both the panes are currently displayed.

Office 365

The commands both work in Word 2010.

User avatar
HansV
Administrator
Posts: 78416
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: vba - changing width of taskpanes - Office 365 Dec 2020

Post by HansV »

Strange - it works for me for both task panes in Word in Office 2019 ProPlus, which has the same code base as Word in Office 365.
Best wishes,
Hans

User avatar
Charles Kenyon
5StarLounger
Posts: 609
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: vba - changing width of taskpanes - Office 365 Dec 2020

Post by Charles Kenyon »

I'll keep tinkering and if I figure anything out I will post.

User avatar
Jay Freedman
Microsoft MVP
Posts: 1316
Joined: 24 May 2013, 15:33
Location: Warminster, PA

Re: vba - changing width of taskpanes - Office 365 Dec 2020

Post by Jay Freedman »

I see the same thing as Charles. This is in MS 365 Version 2011 (Build 13426.20306) Current Channel (Preview).

User avatar
Charles Kenyon
5StarLounger
Posts: 609
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: vba - changing width of taskpanes - Office 365 Dec 2020

Post by Charles Kenyon »

When I start Word with the \a switch (no Add-Ins) the command works on the Styles Pane!

Tried with a new Normal.dotm - command does not work.
Unloaded all of my template Add-Ins (~20) - command does not work.
Unloaded COM Add-Ins (Adobe and Dropbox) - command does not work.

When it does not work, it does not throw an error. It just (apparently) does not do anything.

Also using MS 365 Version 2011 (Build 13426.20294) Monthly Channel but not Insider.