Skip to content

Commit 6b6baae

Browse files
committed
Update excel.xlsx, re-run yarn start
1 parent 9071628 commit 6b6baae

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

snippet-extractor-metadata/excel.xlsx

150 Bytes
Binary file not shown.

snippet-extractor-output/snippets.yaml

+47
Original file line numberDiff line numberDiff line change
@@ -5092,6 +5092,22 @@
50925092
sumCell.format.autofitColumns();
50935093
await context.sync();
50945094
});
5095+
'Excel.Range#clearOrResetContents:member(1)':
5096+
- >-
5097+
// Link to full sample:
5098+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/42-range/range-cell-control.yaml
5099+
5100+
5101+
await Excel.run(async (context) => {
5102+
const sheet = context.workbook.worksheets.getActiveWorksheet();
5103+
5104+
// Get the second column in the table.
5105+
const range = sheet.getRange("FruitTable").getColumn(1);
5106+
5107+
// Clear all the data from the second column.
5108+
range.clearOrResetContents();
5109+
await context.sync();
5110+
});
50955111
'Excel.Range#copyFrom:member(1)':
50965112
- >-
50975113
// Link to full sample:
@@ -5207,6 +5223,24 @@
52075223
console.log(
52085224
`Address: ${cellProperties.address}\nStyle: ${cellProperties.style}\nFill Color: ${cellProperties.format.fill.color}\nFont Color: ${cellProperties.format.font.color}`);
52095225
});
5226+
'Excel.Range#getColumn:member(1)':
5227+
- >-
5228+
// Link to full sample:
5229+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/42-range/range-cell-control.yaml
5230+
5231+
5232+
await Excel.run(async (context) => {
5233+
const sheet = context.workbook.worksheets.getActiveWorksheet();
5234+
5235+
// Get the second column in the table.
5236+
const range = sheet.getRange("FruitTable").getColumn(1);
5237+
5238+
// Change the boolean values to checkboxes.
5239+
range.control = {
5240+
type: Excel.CellControlType.checkbox
5241+
};
5242+
await context.sync();
5243+
});
52105244
'Excel.Range#getDependents:member(1)':
52115245
- >-
52125246
// Link to full sample:
@@ -5875,6 +5909,19 @@
58755909
sheet.getRange("A1:R10").ungroup(Excel.GroupOption.byColumns);
58765910
await context.sync();
58775911
});
5912+
'Excel.Range#values:member':
5913+
- >-
5914+
// Link to full sample:
5915+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/42-range/range-cell-control.yaml
5916+
5917+
5918+
await Excel.run(async (context) => {
5919+
const sheet = context.workbook.worksheets.getActiveWorksheet();
5920+
const range = sheet.getRange("B3");
5921+
5922+
range.values = [["TRUE"]];
5923+
await context.sync();
5924+
});
58785925
'Excel.Range#valuesAsJson:member':
58795926
- >-
58805927
// Link to full sample:

0 commit comments

Comments
 (0)