EBDN - Community - Question & Answers

  Friday, 11 October 2019
  1 Replies
  0.9K Visits
0
Votes
Undo
HI,

I have a c# assistant that calls a VBA assistant which is the Break_up_component.
The problem is, after the break up component is done, it shows messagebox which is located in VBA itself.
Can we disable that particular Message box using C# code. Is there any way to get this done?

Below is the code on how I call the breakup component from c#:
try
{
exApp.Utils.RunMacroOrPlugIn("Break_up_component.Wizard.Run", Function3); //calls the vba assistant

}
catch (Exception ex
{
System.Windows.MessageBox.Show("Macro was not found!", "", System.Windows.MessageBoxButton.OK, System.Windows.MessageBoxImage.Warning);
}

I have tried few solutions using send keys are we able to use sand key to get this done?

Thank you.