P
pinkfloydfan
Hi there
I'm still creating a Form to be used in Excel. The Form is opened via
a vba macro which calls a C# wrapper within an xll that opens the
Form, like this:
VBA:
Sub TestMacro2()
Call Application.Run("OpenForm")
End Sub
C#:
public class XLFormWrap
{
[STAThread]
public static void OpenForm()
{
XLForm Form1 = new XLForm();
Form1.ShowDialog();
}
}
What is strange is that while the first time I run the vba macro the
form opens up, any subsequent time produces nothing. I have to close
the session of Excel and reopen it to get the form to open again.
Does anyone know why this would happen please?
Many Thanks
Lloyd
I'm still creating a Form to be used in Excel. The Form is opened via
a vba macro which calls a C# wrapper within an xll that opens the
Form, like this:
VBA:
Sub TestMacro2()
Call Application.Run("OpenForm")
End Sub
C#:
public class XLFormWrap
{
[STAThread]
public static void OpenForm()
{
XLForm Form1 = new XLForm();
Form1.ShowDialog();
}
}
What is strange is that while the first time I run the vba macro the
form opens up, any subsequent time produces nothing. I have to close
the session of Excel and reopen it to get the form to open again.
Does anyone know why this would happen please?
Many Thanks
Lloyd