private void BtnFormPedido_Click(object sender, RibbonControlEventArgs e) { var Form = new F_USIMNAS(); var currentSheet = Globals.ThisAddIn.GetActiveWorkSheet(); Form.Show(); currentSheet.Range["A1"].Value = "chama o forme"; Form.Activate(); currentSheet.Range["A2"].Value = "ativa o forme"; }
private void Ribbon1_Click(object sender, RibbonUIEventArgs e) { var Form = new F_USIMNAS(); Form.Show(); }