private void BtnGenerateFromSelection_Click(object sender, RibbonControlEventArgs e) { Excel.Range SelectionRg = Globals.KlipAddIn.Application.Selection; KlipWriter kw = new KlipWriter(); kw.GenerateKlip(SelectionRg.Parent, SelectionRg.Row, SelectionRg.Row + SelectionRg.Rows.Count - 1); }
private void BtnGenerate_Click(object sender, RibbonControlEventArgs e) { Excel.Worksheet sh = Globals.KlipAddIn.Application.ActiveSheet; KlipWriter kw = new KlipWriter(); kw.GenerateKlip(sh, 2, sh.FirstEmptyRow() - 1); }