Word 365 - Hide/ Disable Auto Save Toggle button, Comment Menu, Share Manu

Hafeez Saleh Muhammad 6 Reputation points
2022-12-09T23:56:55.237+00:00

Hi,

I am working on customizing Word 365 UI using VSTO Add-in and Custom Ribbon / CustomUI.xml approach.

I want to hide or disable following elements on Word 365 UI.

  • Auto Save Toggle button, idMso = AutoSaveSwitch
  • Comment Menu on the top bar, idMso = CollaborateComments
  • Share Manu on the top bar, idMso = ShareOptionsMenu

269042-image.png

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,277 questions
Office Visual Basic for Applications
Office Visual Basic for Applications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Visual Basic for Applications: An implementation of Visual Basic that is built into Microsoft products.
1,496 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. John Korchok 5,746 Reputation points
    2022-12-10T00:35:38.59+00:00

    You can customize the Ribbon, the Quick Access Toolbar and context menus. Your targets are not part of any of those. I've never seen any example of those being removed with a custom ribbon.

    0 comments No comments

  2. Craig 0 Reputation points
    2023-03-17T17:09:18.38+00:00

    If I understand you correctly, you don't want AutoSave to show on the menu. If that's correct, it's super simple. I hid my AutoSaves by doing the following:

    1. Open Excel, Word, etc.
    2. File
    3. Options
    4. In General, look for "Show Save Command in the Application Header"
    5. Uncheck it.
    0 comments No comments

  3. Mustafa Kanorwala 0 Reputation points
    2025-02-10T09:41:11.6033333+00:00

    Is it technically possible to achieve the following using Office.js in a Word add-in?

    We want to add custom properties (such as document IDs and metadata) to Word documents opened via our add-in. Based on the presence of specific custom properties or keywords, we aim to disable Word's default 'Save,' 'Save As,' and 'Share' options to prevent users from saving or sharing the document locally on their desktop/PC.

    Additionally, we would like to implement custom protection mechanisms through our add-in. Could you please confirm whether this functionality can be implemented using office.js or some work around (like combination of vsto and officejs) and suggest best practices or limitations we should be aware of?"

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.