Range.AutoFill(Range, XlAutoFillType) メソッド

定義

指定された対象セル範囲内のセルに対してオートフィルを実行します。

public object AutoFill (Microsoft.Office.Interop.Excel.Range Destination, Microsoft.Office.Interop.Excel.XlAutoFillType Type = Microsoft.Office.Interop.Excel.XlAutoFillType.xlFillDefault);
Public Function AutoFill (Destination As Range, Optional Type As XlAutoFillType = Microsoft.Office.Interop.Excel.XlAutoFillType.xlFillDefault) As Object

パラメーター

Destination
Range

必須 Range オブジェクト。 オートフィルの書き込み先になる Range オブジェクトを指定します。 基準となるデータの入ったセル範囲も含むようにします。

Type
XlAutoFillType

省略可能 XlAutoFillTypeです。 オートフィルの種類を指定します。 次のいずれかの XlAutoFillType 定数:xlFillDaysxlFillFormatsxlFillSeriesxlFillWeekdaysxlGrowthTrendxlFillDefaultdefaultxlFillMonths xlFillMonthsxlFillValuesxlFillYearsxlLinearTrendこの引数が xlFillDefault または省略された場合、Microsoft Excel はソース範囲に基づいて最も適切な塗りつぶしの種類を選択します。

戻り値

適用対象