示例#1
0
        public void Application_WorkbookOpen(Workbook Doc)
        {
            Sheets sheets = Doc.Worksheets;

            connections         con = new connections();
            funcionesEspeciales fe  = new funcionesEspeciales();

            foreach (Worksheet sheet in sheets)
            {
                if (fe.ReadProperty("conexionSeleccionada", sheet.CustomProperties) != null)
                {
                    DocEvents_ChangeEventHandler EventDel_CellsChange = new DocEvents_ChangeEventHandler(con.WorksheetChangeEventHandler);
                    sheet.Change += EventDel_CellsChange;
                }
            }
        }