Excel.CellValueType enum
オブジェクトの型を CellValue
表します。
注釈
例
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/20-data-types/data-types-error-values.yaml
// This function sets the value of cell A1 to a #BUSY! error using data types.
await Excel.run(async (context) => {
// Retrieve the Sample worksheet and cell A1 on that sheet.
const sheet = context.workbook.worksheets.getItemOrNullObject("Sample");
const range = sheet.getRange("A1");
// Get the error data type and set its type to `busy`.
const error: Excel.ErrorCellValue = {
type: Excel.CellValueType.error,
errorType: Excel.ErrorCellValueType.busy
};
// Set cell A1 as the busy error.
range.valuesAsJson = [[error]];
await context.sync();
});
フィールド
array = "Array" | を表します |
boolean = "Boolean" | を表します |
double = "Double" | を表します |
empty = "Empty" | を表します |
entity = "Entity" | を表します |
error = "Error" | を表します |
externalCodeServiceObject = "ExternalCodeServiceObject" | を表します |
formattedNumber = "FormattedNumber" | を表します |
linkedEntity = "LinkedEntity" | を表します |
localImage = "LocalImage" | を表します |
notAvailable = "NotAvailable" | を表します |
reference = "Reference" | を表します |
string = "String" | を表します |
webImage = "WebImage" | を表します |
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Office Add-ins
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示