Range.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)

Usage

Dim LinkedToExcel As Boolean
Dim WordFormatting As Boolean
Dim RTF As Boolean
Dim range1 As Range
range1.PasteExcelTable(LinkedToExcel, WordFormatting, RTF)

Syntax

Sub PasteExcelTable( _
    <InAttribute()> ByVal LinkedToExcel As Boolean, _
    <InAttribute()> ByVal WordFormatting As Boolean, _
    <InAttribute()> ByVal RTF As Boolean _
)
void PasteExcelTable(
    [In] bool LinkedToExcel, 
    [In] bool WordFormatting, 
    [In] bool RTF
);
public: Void PasteExcelTable(
    Boolean LinkedToExcel, 
    Boolean WordFormatting, 
    Boolean RTF
);
public void PasteExcelTable(
    /*in*/boolean LinkedToExcel, 
    /*in*/boolean WordFormatting, 
    /*in*/boolean RTF
);
function PasteExcelTable(
     LinkedToExcel : Boolean, 
     WordFormatting : Boolean, 
     RTF : Boolean
);

Parameters

  • LinkedToExcel
    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
    Required Boolean. True formats the table using the formatting in the Word document. False formats the table according to the original Excel file.
  • RTF
    Required Boolean. True pastes the Excel table using Rich Text Format (RTF). False pastes the Excel table as HTML.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Range Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Range Members