Skip to content

Instantly share code, notes, and snippets.

@crazyfool2100
Created July 13, 2011 04:58
Show Gist options
  • Save crazyfool2100/1079743 to your computer and use it in GitHub Desktop.
Save crazyfool2100/1079743 to your computer and use it in GitHub Desktop.
public class MyCom : ExcelDna.Integration.CustomUI.ExcelComAddIn
{
public MyCom()
{
}
public void OnConnection(object Application, ext_ConnectMode ConnectMode, object AddInInst, ref Array custom)
{
}
public void OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom)
{
}
public void OnAddInsUpdate(ref Array custom)
{
}
public void OnStartupComplete(ref Array custom)
{
}
public void OnBeginShutdown(ref Array custom)
{
}
}
public class AddIn : IExcelAddIn
{
ExcelDna.Integration.CustomUI.ExcelComAddIn com_addin;
public AddIn()
{
}
public void AutoOpen()
{
com_addin = new MyCom();
ExcelDna.Integration.CustomUI.ExcelComAddInHelper.LoadComAddIn(com_addin);
}
public void AutoClose()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment