ExcelScript.ListDataValidation.source can't take a ExcelScript.Range
@jeremy-msft ci sta già lavorando.
Dal 20/9/2023.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
When I run the following code snippet, it runs indefinitely without performing any action:
function main(workbook: ExcelScript.Workbook) {
const rangeDataValidation = workbook.getActiveWorksheet().getRange("B2:B5").getDataValidation();
rangeDataValidation.setRule({
list: {
inCellDropDown: true,
source: workbook.getWorksheet("Data").getRange("A1:A3")
}
});
}
However, when I run the following code:
function main(workbook: ExcelScript.Workbook) {
const rangeDataValidation = workbook.getActiveWorksheet().getRange("B2:B5").getDataValidation();
rangeDataValidation.setRule({
list: {
inCellDropDown: true,
source: "test1,test2,test3"
}
});
}
Everything works as expected. Am I doing something wrong with the cell range in the first code snippet?
(If this is not the appropriate place for this issue, please redirect me to the correct repository.)
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: eec6dad6-3b54-5f6f-6792-6f8b85bcb13c
- Version Independent ID: 0558dc94-2b87-5ab5-8a9b-5117f12acf8d
- Content: ExcelScript.ListDataValidation interface - Office Scripts
- Content Source: docs/docs-ref-autogen/excel/excelscript/excelscript.listdatavalidation.yml
- Service: excel
- Sub-service: scripts
- GitHub Login: @o365devx
- Microsoft Alias: o365devx
- Lingua principale
- TypeScript
- Stelle
- 71
- Fork
- 36
- Merge medio
- 4g 14h
- PR unite (30g)
- 12
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OfficeDev/office-scripts-docs-reference
-
Needs: attention :wave:
OfficeDev/office-scripts-docs-reference#441 · 1 commento · 1 assegnatario ·
-
Feedback ApertaType: doc request
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
OfficeDev/office-scripts-docs-reference#423 · 1 commento ·
-
Feedback ApertaNeeds: attention :wave: Type: doc bug
OfficeDev/office-scripts-docs-reference#418 · 3 commenti · 1 assegnatario ·
-
Needs: attention :wave: Type: doc bug
OfficeDev/office-scripts-docs-reference#415 · 1 commento · 1 assegnatario ·
-
Status: in backlog Type: product bug
OfficeDev/office-scripts-docs-reference#365 · 5 commenti · 1 assegnatario ·
Tutte le issue di OfficeDev/office-scripts-docs-reference
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
bcgov/bc-wallet-mobile#4761 · 1 commento ·
-
external-issue to-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100