ExcelScript.SpecialCellType enum
注釈
例
/**
* This script finds and highlights all the cells in the current worksheet that contain a formula.
*/
function main(workbook: ExcelScript.Workbook) {
// Get the used range on the current sheet.
const currentSheet = workbook.getActiveWorksheet();
const usedRange = currentSheet.getUsedRange();
// Get the RangeAreas object for each cell with a formula.
const formulaCells = usedRange.getSpecialCells(ExcelScript.SpecialCellType.formulas);
// Add a light blue background to the cells containing formulas.
formulaCells.getFormat().getFill().setColor("#ADD8E6");
}
フィールド
| blanks | コンテンツのないセル。 |
| conditionalFormats | 条件付き書式を持つすべてのセル。 |
| constants | 定数が含まれているセル |
| dataValidations | 検証条件を持つセル。 |
| formulas | 数式が含まれているセル |
| sameConditionalFormat | 範囲内の最初のセルと同じ条件付き書式のセル。 |
| sameDataValidation | 範囲内の最初のセルと同じデータ検証条件を持つセル。 |
| visible | 表示されるセル。 |