Home Page (Objects) | Overview | FAQ | Reference
Applies to: TextSelection object
Converts spaces to tabs in a selection.
Syntax
object.Tabify
Parameters
object
An expression that evaluates to a TextSelection object.
Remarks
This method applies only to the current selection, not to the whole document. To convert spaces to tabs in the entire document, select the whole document using the SelectAll method and then use the Tabify method.
Example
The following example converts spaces to tabs in a selection:
ActiveDocument.Selection.Tabify
See Also IndentSize property, TabSize property, Untabify method, VisibleWhitespace property.