Ejemplo n.º 1
0
        // ribbon callback
        public void OnButtonPressed(Microsoft.Office.Core.IRibbonControl control)
        {
            //string ExcelWBName = MyApp.ExcelApp.ActiveWorkbook.Name;
            //Debug.WriteLine(ExcelWBName);
            MyApp.ExportNamedRanges();
            ButtonPressedEventArgs args = new ButtonPressedEventArgs {
                ControlId = control
            };

            OnButtonPressedEvent(args);
        }
Ejemplo n.º 2
0
 public void OnAction(Microsoft.Office.Core.IRibbonControl control)
 {
     Debug.WriteLine(control.Id);
     MyApp.ExportNamedRanges();
 }