Rows.ConvertToText (Word)

Converts rows in a table to text and returns a Range object that represents the delimited text.

ConvertToText (Separator, NestedTables)


Dim rngConvertToText As Range
Set rngConvertToText = ActiveDocument.Range.Rows.ConvertToText()

Arguments

Optional arguments

The following arguments are optional

Separator (String) - The character that delimits the converted columns (paragraph marks delimit the converted rows). Can be any following WdTableFieldSeparator constants: wdSeparateByCommas, wdSeparateByDefaultListSeparator, wdSeparateByParagraphs, or wdSeparateByTabs (Default).

NestedTables (WdTableFieldSeparator) - True if nested tables are converted to text. This argument is ignored if Separator is not wdSeparateByParagraphs. The default value is True.


Possible values are

wdSeparateByCommas A comma.
wdSeparateByDefaultListSeparator The default list separator.
wdSeparateByParagraphs Paragraph markers.
wdSeparateByTabs A tab.