ExcelScript.WorkbookLinksRefreshMode enum
Stellt den Aktualisierungsmodus der Arbeitsmappenlinks dar.
/**
* This script refreshes all the links to external workbooks,
* if the linked workbook refresh mode is set to manual.
* To learn about linked workbooks, see https://support.microsoft.com/office/c98d1803-dd75-4668-ac6a-d7cca2a9b95f.
*/
function main(workbook: ExcelScript.Workbook) {
// Check the refresh mode.
if (workbook.getLinkedWorkbookRefreshMode() === ExcelScript.WorkbookLinksRefreshMode.manual) {
console.log("Refreshing workbook links");
// Trigger a refresh of linked workbook content.
workbook.refreshAllLinksToLinkedWorkbooks();
}
}
automatic | Die Arbeitsmappenlinks werden in einem festgelegten Intervall aktualisiert, das von der Excel-Anwendung festgelegt wird. |
manual | Die Arbeitsmappenlinks werden manuell aktualisiert. |
Feedback zu Office Scripts
Office Scripts ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: