View Single Post
 
Old 02-24-2025, 11:48 AM
joShu joShu is offline Windows 10 Office 2019
Novice
 
Join Date: Apr 2021
Posts: 2
joShu is on a distinguished road
Default

Application.CommandBars.ExecuteMso "ViewFocusModeView" was the ticket, thanks Guessed. That is an easy way to toggle Focus Mode.

Now wondering if I can detect which mode I am in (in order to display Nav Pane, change Page Color, etc., based on mode)

I know I can do something like this for Print View:

Code:
test1 = ActiveWindow.View.Type = wdPrintView
But I have not yet found a similar technique for determining Focus Mode.

The use of ExecuteMso implies there is no object for it?

CommandBars.ExecuteMso method (Office) | Microsoft Learn
Quote:
This method is useful in cases where there is no object model for a particular command.
Reply With Quote