excel-addins

Iterating unregistered add-ins (.xla)

跟風遠走 提交于 2019-11-30 09:10:37
I need help in figuring out how to iterate through currently open Excel add-in files (.xla) that have not been registered in Excel using the Tools > Add-ins menu path. more specifically, I am interested in any workbook that doesn't appear in the Add-In dialog, but has ThisWorkbook.IsAddin = True . Demonstrating the issue: Trying to loop through workbooks as follows doesn't get workbooks with .AddIn = True : Dim book As Excel.Workbook For Each book In Application.Workbooks Debug.Print book.Name Next book Looping through add-ins doesn't get add-ins that are not registered: Dim addin As Excel

How to perform .Onkey Event in an Excel Add-In created with Visual Studio 2010?

≡放荡痞女 提交于 2019-11-27 23:57:55
I am creating an Excel Add-In using Visual Studio 2010. I would like to run some code when users clicks a combination of keys. Here is the code I have got Public Class CC Private Sub ThisAddIn_Startup() Handles Me.Startup EnableShortCut() End Sub Sub A1() MsgBox "A1" End Sub Sub A2() MsgBox "A2" End Sub Sub A3() MsgBox "A3" End Sub Public Sub EnableShortCut() With Application .OnKey "+^{U}", "A1" 'action A1 should be performed when user clicks Ctrl + Shift + U .OnKey "+^{L}", "A2" 'action A2 should be performed when user clicks Ctrl + Shift + L .OnKey "+^{P}", "A3" 'action A3 should be

Optional Argument of COM Add-in vs Automation Add-in Written in C#

坚强是说给别人听的谎言 提交于 2019-11-27 18:30:17
问题 I am working on a library of COM Add-in and Excel Automation Add-in, whose core codes are written in C#. I'd like to set an optional argument for the function and I know that this is legal for both C# and VBA, and even Excel WorksheetFunction. But I find that finally the optional argument works exclusively for COM and Automation add-in, meaning that if one add-in is run first, then works well but the optional argument of the other one will not work. Below please see the example: In the VS

Loading addins when Excel is instantiated programmatically

家住魔仙堡 提交于 2019-11-27 01:45:50
I am trying to create a new instance of Excel using VBA using: Set XlApp = New Excel.Application The problem is that this new instance of Excel doesn't load all the addins that load when I open Excel normally...Is there anything in the Excel Application object for loading in all the user-specified addins? I'm not trying to load a specific add-in, but rather make the new Excel application behave as though the user opened it themself, so I'm really looking for a list of all the user-selected add-ins that usually load when opening Excel. I looked into this problem again, and the Application

How do I create a real-time Excel automation add-in in C# using RtdServer?

你。 提交于 2019-11-26 21:35:46
I was tasked with writing a real-time Excel automation add-in in C# using RtdServer for work. I relied heavily on the knowledge that I came across in Stack Overflow. I have decide to express my thanks by writing up a how to document that ties together all that I have learned. Kenny Kerr's Excel RTD Servers: Minimal C# Implementation article helped me get started. I found comments by Mike Rosenblum and Govert especially helpful. (As an alternative to the approach described below you should consider using Excel-DNA . Excel-DNA allows you to build a registration-free RTD server. COM registration

How to perform .Onkey Event in an Excel Add-In created with Visual Studio 2010?

江枫思渺然 提交于 2019-11-26 17:07:30
问题 I am creating an Excel Add-In using Visual Studio 2010. I would like to run some code when users clicks a combination of keys. Here is the code I have got Public Class CC Private Sub ThisAddIn_Startup() Handles Me.Startup EnableShortCut() End Sub Sub A1() MsgBox "A1" End Sub Sub A2() MsgBox "A2" End Sub Sub A3() MsgBox "A3" End Sub Public Sub EnableShortCut() With Application .OnKey "+^{U}", "A1" 'action A1 should be performed when user clicks Ctrl + Shift + U .OnKey "+^{L}", "A2" 'action A2

How do I create a real-time Excel automation add-in in C# using RtdServer?

痴心易碎 提交于 2019-11-26 07:59:16
问题 I was tasked with writing a real-time Excel automation add-in in C# using RtdServer for work. I relied heavily on the knowledge that I came across in Stack Overflow. I have decide to express my thanks by writing up a how to document that ties together all that I have learned. Kenny Kerr\'s Excel RTD Servers: Minimal C# Implementation article helped me get started. I found comments by Mike Rosenblum and Govert especially helpful. 回答1: (As an alternative to the approach described below you

Loading addins when Excel is instantiated programmatically

十年热恋 提交于 2019-11-26 05:35:34
问题 I am trying to create a new instance of Excel using VBA using: Set XlApp = New Excel.Application The problem is that this new instance of Excel doesn\'t load all the addins that load when I open Excel normally...Is there anything in the Excel Application object for loading in all the user-specified addins? I\'m not trying to load a specific add-in, but rather make the new Excel application behave as though the user opened it themself, so I\'m really looking for a list of all the user-selected

I don't want my Excel Add-In to return an array (instead I need a UDF to change other cells)

半世苍凉 提交于 2019-11-26 01:00:13
问题 I\'ve created an Excel Add-In, and one of the functions of this Add-In, lets say New_Years currently takes in 2 years and outputs every New Years day between those 2 years as an array in Excel. So New_Years(2000,2002) would return Jan 1st 2000, Jan 1st 2001, and Jan 1st 2002 in the last cell. The problem is that I have to know there are going to be 3 dates in that time, select 3 cells, enter my formula in the top cell, and then hit Ctrl + Shift + Enter to fill out the array. I use XLW version

I don't want my Excel Add-In to return an array (instead I need a UDF to change other cells)

主宰稳场 提交于 2019-11-25 22:22:29
I've created an Excel Add-In, and one of the functions of this Add-In, lets say New_Years currently takes in 2 years and outputs every New Years day between those 2 years as an array in Excel. So New_Years(2000,2002) would return Jan 1st 2000, Jan 1st 2001, and Jan 1st 2002 in the last cell. The problem is that I have to know there are going to be 3 dates in that time, select 3 cells, enter my formula in the top cell, and then hit Ctrl + Shift + Enter to fill out the array. I use XLW version 5 to convert my C++ code to an .xll file. I would really like it if there was some way I could just