Row.ConvertToText Method
Converts a table to text and returns a Range object that represents the delimited text.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function ConvertToText ( _
ByRef Separator As Object, _
ByRef NestedTables As Object _
) As Range
'Usage
Dim instance As Row
Dim Separator As Object
Dim NestedTables As Object
Dim returnValue As Range
returnValue = instance.ConvertToText(Separator, _
NestedTables)
Range ConvertToText(
ref Object Separator,
ref Object NestedTables
)
Parameters
- Separator
Type: System.Object%
Optional Object. The character that delimits the converted columns (paragraph marks delimit the converted rows). Can be any following WdTableFieldSeparator constants:
wdSeparateByCommas
wdSeparateByDefaultListSeparator
wdSeparateByParagraphs
wdSeparateByTabs Default
- NestedTables
Type: System.Object%
Optional Object. True if nested tables are converted to text. This argument is ignored if Separator is not wdSeparateByParagraphs. The default value is True.
Return Value
Type: Microsoft.Office.Interop.Word.Range
Remarks
When you apply the ConvertToText method to a Table object, the object is deleted. To maintain a reference to the converted contents of the table, you must assign the Range object returned by the ConvertToText method to a new object variable.