ExcelScript.SpecialCellValueType enum
注釈
例
/**
* This script finds and bolds the text of cells containing strings (not numbers or formulas).
*/
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 only text.
const textCells = usedRange.getSpecialCells(
ExcelScript.SpecialCellType.constants,
ExcelScript.SpecialCellValueType.text);
// Bold the text of those cells.
textCells.getFormat().getFont().setBold(true);
}
フィールド
| all | エラー、ブール値、数値、または文字列値を持つセル。 |
| errors | エラーがあるセル。 |
| errorsLogical | エラーまたはブール値を持つセル。 |
| errorsLogicalNumber | エラー、ブール値、または数値を持つセル。 |
| errorsLogicalText | エラー、ブール値、または文字列値を持つセル。 |
| errorsNumbers | エラーまたは数値を持つセル。 |
| errorsNumberText | エラー、数値、または文字列の値を持つセル。 |
| errorsText | エラーまたは文字列値を持つセル。 |
| logical | ブール値を持つセル。 |
| logicalNumbers | ブール値または数値を持つセル。 |
| logicalNumbersText | ブール値、数値値、または文字列値を持つセル。 |
| logicalText | ブール値または文字列値を持つセル。 |
| numbers | 数値を持つセル。 |
| numbersText | 数値または文字列値を持つセル。 |
| text | 文字列値を持つセル。 |