Share via


Selection.PasteExcelTable Method

Pastes and formats a Microsoft Excel table.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub PasteExcelTable ( _
    LinkedToExcel As Boolean, _
    WordFormatting As Boolean, _
    RTF As Boolean _
)
'Usage
Dim instance As Selection
Dim LinkedToExcel As Boolean
Dim WordFormatting As Boolean
Dim RTF As Boolean

instance.PasteExcelTable(LinkedToExcel, _
    WordFormatting, RTF)
void PasteExcelTable(
    bool LinkedToExcel,
    bool WordFormatting,
    bool RTF
)

Parameters

  • LinkedToExcel
    Type: System.Boolean
    Required Boolean. True links the pasted table to the original Excel file so that changes made to the Excel file are reflected in Microsoft Word.
  • WordFormatting
    Type: System.Boolean
    Required Boolean. True formats the table using the formatting in the Word document; False formats the table according to the original Excel file.
  • RTF
    Type: System.Boolean
    Required Boolean. True pastes the Excel table using Rich Text Format (RTF); False pastes the Excel table as HTML.

See Also

Reference

Selection Interface

Selection Members

Microsoft.Office.Interop.Word Namespace