diff options
author | Serghei Cebotari <51533848+schebotar@users.noreply.github.com> | 2022-01-09 15:48:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-09 15:48:16 +0300 |
commit | bca7f64880bdbcade4a613c8223f82353a326b44 (patch) | |
tree | d14ea8875b8b348c1f3e03256ec304ea992d635f /src/AddIn/AddIn.cs | |
parent | 72908aaaf7da74fe1b3de4d939faaf829d4a80e2 (diff) | |
parent | 846547d6d905e0dbee73cd9c62760ea43bb88134 (diff) |
Merge pull request #11 from schebotar/dev
Dev
Diffstat (limited to 'src/AddIn/AddIn.cs')
-rw-r--r-- | src/AddIn/AddIn.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/AddIn/AddIn.cs b/src/AddIn/AddIn.cs index 67cdcc8..93d8aec 100644 --- a/src/AddIn/AddIn.cs +++ b/src/AddIn/AddIn.cs @@ -1,6 +1,7 @@ using ExcelDna.Integration; using ExcelDna.IntelliSense; using ExcelDna.Registration; +using Microsoft.Office.Interop.Excel; using System.Net.Http; using System.Runtime.Caching; @@ -20,6 +21,7 @@ namespace RehauSku { public static HttpClient httpClient; public static MemoryCache memoryCache; + public static Application Excel; public void AutoOpen() { @@ -28,6 +30,7 @@ namespace RehauSku RegisterFunctions(); IntelliSenseServer.Install(); RegistryUtil.Initialize(); + Excel = (Application)ExcelDnaUtil.Application; } public void AutoClose() |