NamedRange::AutoFill Method (Range^, XlAutoFillType)
Automatically fills the cells in the NamedRange control.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Object^ AutoFill( Range^ Destination, XlAutoFillType Type = XlAutoFillType::xlFillDefault )
Parameters
- Destination
-
Type:
Microsoft.Office.Interop.Excel::Range^
The cells to be filled. The destination must include the source range.
- Type
-
Type:
Microsoft.Office.Interop.Excel::XlAutoFillType
Specifies the fill type.
Can be one of these XlAutoFillType values:
If this argument is xlFillDefault or omitted, Microsoft Office Excel selects the most appropriate fill type, based on the source range.
Return Value
Type: System::Object^For information on optional parameters, see Optional Parameters in Office Solutions.
Show: