Exemplo n.º 1
0
        public ExcelTransactionHitInfo GetTransactionHitInfo()
        {
            IExcelSheet sheet = _app.GetActiveWorkbook().GetActiveSheet();

            ExcelRangeInfo info = sheet.GetSelection();

            int selectedRow = info.Start.Row;

            Transaction transaction = GetTransaction(selectedRow);

            return(new ExcelTransactionHitInfo {
                Transaction = transaction
            });
        }