名前付き範囲式におけるドイツ語ロケールのサポート
Contents
[
Hide
]
英語の数式が名前付き領域に書き込まれます。このExcelファイルは、システムがドイツ語のロケールに構成された環境で開くことが可能ですが、英語の数式はドイツ語に翻訳されます。以下の例はこの機能を示していますが、Excel をドイツ語でインストールし、システムのロケールもドイツ語に設定する必要があります。
この機能のテスト用のサンプルファイルは、以下のリンクからダウンロードできます:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); |