Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 06-05-2023, 07:26 AM
Charles Kenyon Charles Kenyon is offline Display Navigation and Styles Panes in 365/2021 Windows 11 Display Navigation and Styles Panes in 365/2021 Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,584
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by Guessed View Post
I did get an error initially on 365 but then it worked.

I think if you add an
On Error Resume Next

and then re-enable the TaskPanes line then I expect either one or both will work and if it errors then the second one gets it done anyway.

Andrew,
Thank you for the suggestion.


SpeakEasy, in Eileen's Lounge, suggested:
ActiveDocument.CommandBars.ExecuteMso "StylesPane"


Nothing with the Styles Pane will work in AutoExec because there is no document open and Word won't display the Styles Pane without an open document. Once a document is open and the StylesPane has been activated in some manner, apparently both visible and width work.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Styles display changed - just an alert Charles Kenyon Word 2 11-22-2021 03:04 PM
Unable to connect Styles to the Navigation column. Balliol Word 5 08-04-2019 04:25 AM
Using the Navigation Pane with modified styles susandickerson Word 3 07-10-2014 08:35 PM
How to Customize Outlook Panes Steve_B Outlook 0 07-08-2014 09:05 AM
Can't Display "Recently Used Styles" in Styles Pane mwildem Word 2 05-23-2012 01:42 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft