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.
|