Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 05-18-2024, 04:17 AM
Guessed's Avatar
Guessed Guessed is offline How can I switch to/from "Focus Mode" with VBA? Windows 10 How can I switch to/from "Focus Mode" with VBA? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

joshu was very close to hitting the right command name
Code:
Application.CommandBars.ExecuteMso "ViewFocusModeView"
To figure out the name of the command which didn't appear in any of my usual searches, I went to the Customise Ribbon dialog and hovered over that particular button. A tooltip popped up with the actual command name shown in brackets.
Attached Images
File Type: png Screenshot 2024-05-18 211412.png (55.5 KB, 26 views)
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 

Tags
distraction-free, focus mode



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I switch to/from "Focus Mode" with VBA? Remove toggle button "focus" (dotted inner border) using VBA Matt C Excel Programming 7 05-22-2022 04:32 AM
Excel 2003: VBA "Function" causes "#VALUE!" errors after running "insert/delete row" custom macro Matt C Excel Programming 2 01-08-2022 06:03 AM
How can I switch to/from "Focus Mode" with VBA? Using "draw"tab crashes word- safe mode fixes temporarily? owl Drawing and Graphics 11 10-04-2017 10:11 AM
"one click" function to switch between branded presentations davidolone PowerPoint 0 01-16-2016 01:54 PM
How can I switch to/from "Focus Mode" with VBA? PPT 2010 Action - Run Program reverses "/" switch character wflett PowerPoint 4 03-17-2015 04:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:59 AM.


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