excel-addins

Register UDF with descriptions of arguments using excel addin

£可爱£侵袭症+ 提交于 2019-12-01 20:11:47
I have an addin with an UDF getRegExResult . I want to add a function description and arguments descriptions to this function, so when user installs the addin, closes, opens excel few times and goes to "Insert Function" Dialog box he will be able to find the function with description of the arguments. The same is asked here . I found one answer that suits my needs. Except... I want to be able to do this through an Excel Addin. My idea is to put call into addin workbook_open event like so: Private Sub Workbook_Open() Call getRegExResultRegister End Sub Public Sub getRegExResultRegister()

Excel Addin that works on Excel 2007 and 2010

安稳与你 提交于 2019-12-01 19:26:06
I'm writing an Excel Addin that should work in both 2007 and 2010. When I create a new project with Visual Studio I need to decide which version I want. I've chosen 2007 before, but since I have 2010 installed I can't debug it. I get an error: You cannot debug or run this project, because the required version of the Microsft Office application is not installed. It is my understanding that if I target 2007 I should be able to run it on both 2007 and 2010. Is that correct? If that's so, can I debug it using 2010? A shared Add-in is made from a Visual Studio project creating a Com Add-In

WPF window throws TypeInitializationException at start up

江枫思渺然 提交于 2019-12-01 06:23:09
I have an Excel AddIn with several ribbons, one ribbon is setting window. When it is clicked, a custom window will show up. However, there is nothing to show up when clicked. I saw the following exceptions in log file. What causes this and how to fix it? thanks a lot 2012-04-09 09:59:50,161 [1] ERROR Helper [(null)] - Name:TypeInitializationException Message:The type initializer for 'System.Windows.Window' threw an exception. Target:Void .ctor() Stack: at System.Windows.Window..ctor() at MyShared.View.ConnectionSetup..ctor() at MyAddIn.Connect.GetSettings() at MyAddIn.Connect.BtnClick

Build Error + Creating VSTO addin for excel 2010

你。 提交于 2019-12-01 05:32:37
问题 I try to create an excel add-in using VS 2010. When I create a new project Excel 2010 Addin, and try to compile the solution. I get an error which says. 'Error 1 The "FindRibbons" task could not be loaded from the assembly 'Microsoft.VisualStudio.Tools.Office.BuildTasks, 'Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Confirm that the '<UsingTask> declaration is correct, that the assembly and all its dependencies are 'available, and that the task contains a public class

WPF window throws TypeInitializationException at start up

戏子无情 提交于 2019-12-01 04:56:44
问题 I have an Excel AddIn with several ribbons, one ribbon is setting window. When it is clicked, a custom window will show up. However, there is nothing to show up when clicked. I saw the following exceptions in log file. What causes this and how to fix it? thanks a lot 2012-04-09 09:59:50,161 [1] ERROR Helper [(null)] - Name:TypeInitializationException Message:The type initializer for 'System.Windows.Window' threw an exception. Target:Void .ctor() Stack: at System.Windows.Window..ctor() at

What's the fastest way to export all excel add-in modules to .bas files?

寵の児 提交于 2019-11-30 22:17:09
I'm working on an big excel-addin with many modules. I need to export them to .bas file to manage them with SVN. I know a hot key to export them fast, Ctrl+E . But the number of my modules is too many that I still lose too much time to export them. Does anyone know a faster way to do this? Tim Williams This is a great tool which should do what you need http://www.appspro.com/Utilities/CodeCleaner.htm From their website: Export Code Files - This feature allows you to export all the code files from a project to the directory you specify without the need to perform a project cleaning. If you are

Add user defined function to Visual Studio Excel Add-in

泪湿孤枕 提交于 2019-11-30 17:45:44
In visual studio I have an Excel 2010 Add-in project. How can I have that project create the following module: I know I can save that workbook with that module then use it with my add in. It will be nice if I can have my add-in create that module... It is possible to create the module. However for this to work the setting to "Trust access to the VB Project model" must be selected in Excel. It throws an error that access is denied if the trust setting is not selected. using Excel = Microsoft.Office.Interop.Excel; using VB = Microsoft.Vbe.Interop; Excel.Application eApp = new Excel.Application()

What's the fastest way to export all excel add-in modules to .bas files?

霸气de小男生 提交于 2019-11-30 17:41:41
问题 I'm working on an big excel-addin with many modules. I need to export them to .bas file to manage them with SVN. I know a hot key to export them fast, Ctrl+E . But the number of my modules is too many that I still lose too much time to export them. Does anyone know a faster way to do this? 回答1: This is a great tool which should do what you need http://www.appspro.com/Utilities/CodeCleaner.htm From their website: Export Code Files - This feature allows you to export all the code files from a

Excel Custom Task Pane not showing

允我心安 提交于 2019-11-30 15:09:55
I'm showing a custom task pane in an excel VSTO add-in, I'm building it and showing it as thus: var ctrl = new CellTaskPane(); var pane = CustomTaskPanes.Add(ctrl, "Custom Sheet"); pane.DockPosition = Office.MsoCTPDockPosition.msoCTPDockPositionRight; pane.DockPositionRestrict = Office.MsoCTPDockPositionRestrict.msoCTPDockPositionRestrictNoChange; pane.Visible = true; This is being done in the ThisAddin.cs file and it working just fine on my machine, both under a Debug session and with the add-in installed via the click-once installer. However, installing the add-in on a colleague's machine is

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

戏子无情 提交于 2019-11-30 14:17:33
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 2013 solution, I have two projects: one is called TestVBA and another one is called TestExcel . TestVBA is