ShowSpaces Property Example

This example inserts spaces before the selection and displays space characters in the active window.

Selection.InsertBefore "    "
ActiveDocument.ActiveWindow.View.ShowSpaces = True