/
excelscript.autofilltype.yml
85 lines (80 loc) · 3.5 KB
/
excelscript.autofilltype.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
### YamlMime:TSEnum
name: ExcelScript.AutoFillType
uid: 'ExcelScript!ExcelScript.AutoFillType:enum'
package: ExcelScript!
fullName: ExcelScript.AutoFillType
summary: The behavior types when AutoFill is used on a range in the workbook.
remarks: |-
#### Examples
```TypeScript
/**
* This script uses the autofill feature to complete a table with days of the month.
* See https://support.microsoft.com/74e31bdd-d993-45da-aa82-35a236c5b5db
* for examples of autofill scenarios.
*/
function main(workbook: ExcelScript.Workbook) {
// Get the current, active worksheet.
let currentWorksheet = workbook.getActiveWorksheet();
// Get the data range that shows the pattern.
let dataRange = currentWorksheet.getRange("C2:C3");
// Autofill the connected range. C2:C3 are filled in with dates. C4:C54 are blank.
dataRange.autoFill("C2:C54", ExcelScript.AutoFillType.fillDays);
}
```
isPreview: false
isDeprecated: false
fields:
- name: fillCopy
uid: 'ExcelScript!ExcelScript.AutoFillType.fillCopy:member'
package: ExcelScript!
summary: Populates the adjacent cells with data based on the selected data.
- name: fillDays
uid: 'ExcelScript!ExcelScript.AutoFillType.fillDays:member'
package: ExcelScript!
summary: >-
A version of "FillSeries" for dates that bases the pattern on either the day of the month or the day of the week,
depending on the context.
- name: fillDefault
uid: 'ExcelScript!ExcelScript.AutoFillType.fillDefault:member'
package: ExcelScript!
summary: Populates the adjacent cells based on the surrounding data (the standard AutoFill behavior).
- name: fillFormats
uid: 'ExcelScript!ExcelScript.AutoFillType.fillFormats:member'
package: ExcelScript!
summary: Populates the adjacent cells with the selected formats.
- name: fillMonths
uid: 'ExcelScript!ExcelScript.AutoFillType.fillMonths:member'
package: ExcelScript!
summary: A version of "FillSeries" for dates that bases the pattern on the month.
- name: fillSeries
uid: 'ExcelScript!ExcelScript.AutoFillType.fillSeries:member'
package: ExcelScript!
summary: Populates the adjacent cells with data that follows a pattern in the copied cells.
- name: fillValues
uid: 'ExcelScript!ExcelScript.AutoFillType.fillValues:member'
package: ExcelScript!
summary: Populates the adjacent cells with the selected values.
- name: fillWeekdays
uid: 'ExcelScript!ExcelScript.AutoFillType.fillWeekdays:member'
package: ExcelScript!
summary: A version of "FillSeries" for dates that bases the pattern on the day of the week and only includes weekdays.
- name: fillYears
uid: 'ExcelScript!ExcelScript.AutoFillType.fillYears:member'
package: ExcelScript!
summary: A version of "FillSeries" for dates that bases the pattern on the year.
- name: flashFill
uid: 'ExcelScript!ExcelScript.AutoFillType.flashFill:member'
package: ExcelScript!
summary: Populates the adjacent cells by using Excel's Flash Fill feature.
- name: growthTrend
uid: 'ExcelScript!ExcelScript.AutoFillType.growthTrend:member'
package: ExcelScript!
summary: >-
A version of "FillSeries" for numbers that fills out the values in the adjacent cells according to a growth trend
model.
- name: linearTrend
uid: 'ExcelScript!ExcelScript.AutoFillType.linearTrend:member'
package: ExcelScript!
summary: >-
A version of "FillSeries" for numbers that fills out the values in the adjacent cells according to a linear trend
model.