Office for Mac Issues

Toggle No Markup in Word 2016 for Mac with VBA

Huma Ashraf ChHuma Ashraf Ch Nov 14, 2026 868 views

Question details

The user wants a VBA macro that toggles the display of tracked changes and other markup in Word 2016 for Mac.

Toggle No Markup in Word 2016 for Mac with VBA
Product
Microsoft Word 2016 for Mac
Device & OS
Mac
Scenario
The user wants to switch between hiding and displaying document markup with a macro.
Observed behavior
The intended result is to toggle between No Markup and All Markup; an incorrectly structured macro can produce an Expected End Sub error.
Before you start

Open the document in Word 2016 for Mac and make sure it contains tracked changes or comments so you can see the view change. Check Word's macro security settings if you cannot run macros.

Solution 1Recommended

Create a VBA macro to toggle the markup view

Use this macro to switch between No Markup and All Markup in the active document window.

The macro uses wdRevisionsMarkupNone to hide markup and wdRevisionsMarkupAll to display it. Changing the view does not accept or reject changes or turn Track Changes off.

1
Open the VBA editor

In Word, choose Tools > Macro > Visual Basic Editor.

2
Insert a module

In the VBA editor, select the document or its template in the project pane, then choose Insert > Module.

3
Add the macro

Paste this code into the module: Sub ToggleMarkupView() With ActiveWindow.View.RevisionsFilter If .Markup = wdRevisionsMarkupNone Then .Markup = wdRevisionsMarkupAll Else .Markup = wdRevisionsMarkupNone End If End With End Sub

4
Run the macro

Return to Word, choose Tools > Macro > Macros, select ToggleMarkupView, and click Run. Run it again to switch back.

5
Check procedure boundaries

If the editor reports Expected End Sub, inspect the module and make sure each Sub has its own matching End Sub. Do not paste the new procedure inside another Sub.

Create a VBA macro to toggle the markup view
Markup remains in the document: No Markup only hides the display. Use the Review tab to accept or reject changes and manage comments if you need to remove them.
Free Microsoft Office alternative

Review documents with WPS Office as a Word alternative

WPS Office is a free, lightweight alternative with a familiar interface for opening and editing documents. Its Microsoft Word format compatibility makes it easy to move existing files into WPS, although it does not fix Word's VBA errors.

Review and edit documents in a familiar word-processing interfaceOpen and save Microsoft Word DOC and DOCX filesMove existing documents into WPS Office without starting overUse a free, lightweight Office alternative
microsoft office alternative - wps office

Frequently Asked Questions

Does No Markup remove tracked changes?

No. No Markup hides their display. To remove tracked changes, use the Accept or Reject controls on Word's Review tab.

Why does my macro say Expected End Sub?

In the VBA editor, check that every Sub declaration has a matching End Sub and that one procedure is not nested inside another.

Can I change the markup view without a macro?

Yes. On the Review tab, use the markup display menu to choose No Markup or All Markup.

Does hiding markup turn off Track Changes?

No. The markup view controls what is displayed. Use Track Changes on the Review tab to turn change tracking on or off.