Toggle No Markup in Word 2016 for Mac with VBA
Question details
The user wants a VBA macro that toggles the display of tracked changes and other markup in Word 2016 for Mac.

- 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.
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.
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.
In Word, choose Tools > Macro > Visual Basic Editor.
In the VBA editor, select the document or its template in the project pane, then choose Insert > Module.
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
Return to Word, choose Tools > Macro > Macros, select ToggleMarkupView, and click Run. Run it again to switch back.
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.

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.

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.




