Supporto per la lingua tedesca nelle formule con intervallo denominato

Contents
[ ]

Le formule inglesi sono scritte nella regione denominata. Questo file Excel può essere aperto in un ambiente in cui il sistema è configurato sulla lingua tedesca, tuttavia la formula inglese deve essere tradotta in lingua tedesca. L’esempio seguente mostra questa funzionalità, tuttavia richiede che Excel sia installato in lingua tedesca e che anche le impostazioni locali del sistema siano impostate su tedesco.

Il file di esempio per testare questa funzione può essere scaricato dal seguente link:

sampleNamedRangeTest.xlsm

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
const string name = "HasFormula";
const string value = "=GET.CELL(48, INDIRECT(\"ZS\",FALSE))";
Workbook wbSource = new Workbook(sourceDir + "sampleNamedRangeTest.xlsm");
WorksheetCollection wsCol = wbSource.Worksheets;
int nameIndex = wsCol.Names.Add(name);
Name namedRange = wsCol.Names[nameIndex];
namedRange.RefersTo = value;
wbSource.Save(outputDir + "sampleOutputNamedRangeTest.xlsm");