Beispiel #1
0
        public void InitRange(InteropExcel.Workbook Workbook, string Worksheet, string Name, string ReferenceLocal, bool AddToWorkbook = false)
        {
            _Workbook = Workbook;
            _WorksheetName = Worksheet;
            _RangeName = Name;
            _ReferenceLocal = ReferenceLocal;

            if (AddToWorkbook)
            {
                _Workbook.AddNamedRange(Name, ReferenceLocal);
            }
        }