Created
July 13, 2011 05:05
-
-
Save crazyfool2100/1079749 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
{ | |
private 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