excel-addins

Excel VBA Load Addins

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 spec...

Iterating unregistered add-ins (.xla) in Excel 2003

Hi, 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...

Trouble Creating Excel add-in from macro.

I've created two VBA macro functions that worked fine when used in the current workbook. I saved as .xla and imported as an add-in. I then found and activated the add-in through the menus in excel but when I use the functions I get the #NAME error and a description of "The formula contains unrecognized text". I'm stuck. ...

How to troubleshoot why Excel disables an add-in?

I've written an Microsoft Excel add-in in .NET using Add-in Express, and deployed it to about 50 different user sites, all running Office 2003 on Windows XP. The add-in works fine at the majority of sites, but in a few cases, Excel seems to disable the add-in after a while, and they have to find it on the disabled items list to re-enabl...

Excel add-in transferring data from sheets to database: file path problem

I wish to create an addin for excel which can read the current sheets data and then insert it into database. The database connection requires the file location. Therefore that approach cant be applied as I have to send the file that I have currently opened and can't specify the file path. And moreover I need the data of each column to ...

Excel VBA - Use Module in Workbook B to Update Data in Workbook A

I have 10 XLS's, each of which contain a a few hundred lines of VBA that do the same thing. I want to move this common code into an 11th XLS, and have the other 10 call the code in the 11th XLS. The common code must have access to all of the data and worksheets in the calling XLS. This last requirement does not seem to be addressed by ot...

Passing a variable from Excel 2007 Custom Task Pane to Hosted PowerShell

I am testing PowerShell hosting using C#. Here is a console application that works: using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Runspaces; using Microsoft.Office.Interop.Excel; namespace ConsoleAppl...

Macro not in the list after loading the add-in.

I have a created a macro show() and saved it as display.xla and open a new workbook and added the display add-in. But when i went to Tools->Macro->Macro.. its not the list, But if i type display.xla!show and click run im able to execute it. Is there anyway to display the macros stored in the Add-in.? Apart from having it in personal.xls...

How do I create an Excel add-in that reads custom data?

I have been tasked with creating an addin for Excel 2007 that reads data from a custom data source. I already have the code that reads the data. It's written in C# and returns objects. This is for a banking system and I cannot give direct access to the data. A userID, password and hardware generated key must be provided to the C# DLL to ...

Which COM shim wizard version should I use with VS 2008 and Office 2003

On the download page for 2.3.1 it only mentions compatability with Office 2007. I tried installing v2.0 but I couldn't see the wizards in the project types. ...

C++ Excel AddIn DLL that returns strings to C# and VBA

I'm in the process of creating an Excel addIn package to work with a web service. I have a C++ .xll addIn that uses MSXML to communicate with the web service, and registers worksheet functions, but otherwise provides no UI. I am developing a c# .net addIn to provide the GUI using the Office 2007 ribbon, and a VBA addIn for earlier versi...

Excel Automation Addin UDFs not accesible

I created the following automation addin: namespace AutomationAddin { [Guid("6652EC43-B48C-428a-A32A-5F2E89B9F305")] [ClassInterface(ClassInterfaceType.AutoDual)] [ComVisible(true)] public class MyFunctions { public MyFunctions() { } #region UDFs public string ToUpperCase(str...

ExecuteExcel4Macro on custom xll functions

I have a C++ .xll addIn for Excel. The following test worksheet function works fine with the xll loaded: LPXLOPER __stdcall Test() { return &xlstring("Yayage",true) } i.e. =Test() returns "Yayage" in the worksheet. xlstring is my own custom method which turns a string into an excel string and specifies whether excel or the xll are...

Getting Excel add ins to modify array formula parameters; or perform 'ctrl-shift-enter'

I am trying to make a C# Excel add in change the parameters of an array formula in-place; i.e. do the same as a user modifying an array formula and hitting ctrl-shift-enter. Setting the activeCell.FormulaArray property does not achieve this; it throws a 'You cannot change part of an array' error. Does anyone know how I can achieve this...

Issue with custom Buttons in Excel Toolbar created in a C# addin

Hi, I am currently working on a c# addin for Microsoft Excel. I create a ToolBar for this addin with custom Buttons. Everything is working well except one specific behavior: When you have the excel window opened in small format, let's say half the screen, some of the buttons are hidden behind a menu and are available if you click on a s...

Showing Progress Dialogs - What is the best approach for Office addins

I have a .NET based Excel addin that displays a custom toolbar in Excel. There are about 30 commands that can be executed through this toolbar. The commands are executed on the same (Excel) thread. I want to display progress dialog for some of the commands that take some time to execute for which I used a non-modal dialog. The dialog wo...

Excel formula to check cell contents

Hi everyone, I'm trying to create some conditional formatting at runtime (huzzah) for an add-in (double huzzah), and have found that, apparently, some functions cannot be used as they would in a normal worksheet. (I just get an invalid procedure call error 5 when trying to create the CF referencing a VBA function I could call in a cell,...