excel-addins

Sub-windows created by an add-in

强颜欢笑 提交于 2019-12-11 20:37:10
问题 I have seen several times that an add-in can create sub-windows in Excel. Here is an exemple: Does anyone know which technique allows the add-in to create the sub-windows on the right hand side? 回答1: This technique is CustomTaskPanes 来源: https://stackoverflow.com/questions/35188359/sub-windows-created-by-an-add-in

Excel worksheet change event is not firing when two workbooks are open

回眸只為那壹抹淺笑 提交于 2019-12-11 18:45:43
问题 We are creating a C# Excel Add-in and we want to trap the WorkSheet change event. We have the did the following: private static DocEvents_ChangeEventHandler EventDel_CellsChange; private void ThisAddIn_Startup(object sender, System.EventArgs e) { this.Application.WorkbookOpen += Application_WorkbookOpen; EventDel_CellsChange = new DocEvents_ChangeEventHandler(WorksheetChangeEventHandler); } public void Application_WorkbookOpen(Workbook Doc) { Sheets asp = Doc.Worksheets; foreach(Worksheet

CefSharp in VSTO Addin

隐身守侯 提交于 2019-12-11 18:04:14
问题 I'm trying to use CefSharp WindowForm Control in the VSTO Excel Addin. The CefSharp.WinForms version is 75.1.142 and I'm making an addin on Excel 2013 (64 Bit) through VS 2017. I'm getting FileNotFoundException: 'Could not load file or assembly 'CefSharp, Version=75.1.142.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138' or one of its dependencies. The system cannot find the file specified.' on the below code execution. public void InitBrowser() { var cefSettings = new CefSettings();

Excel AddIn in Excel 2011 for MAC

扶醉桌前 提交于 2019-12-11 12:06:08
问题 How do you create an AddIn for Excel, if I am using Excel (Office 2011) on my MAC Machine(OS X Lion). 回答1: Office 2011 still does not have a "full-fledged AddIn-API" but most of the VBA interface is available and AppleScript is also supported... not an AddIn-API as with Office 2010 for Windows but you can create something close (depending on your goal)... 来源: https://stackoverflow.com/questions/6803286/excel-addin-in-excel-2011-for-mac

upgrade from 32 bit vb project to 64 bit

那年仲夏 提交于 2019-12-11 09:47:38
问题 I have a visual basic(.vbp) desktop application, actually an excel add-ins, it is in VB 2006 and for 32 bit. I need to upgrade it so it can work with 64 bit, is it possible to do so and how. please guide I have already searched on all internet. 回答1: Visual Basic 6 (which came out in 1998, not 2006) predates 64-bit Windows development, and certainly predates it being a normal thing. (Windows XP 64-bit for Itanium was released in 2001, and it didn't get much use.) VB6 can only create 32-bit

How can I put spaces in my VBA project name?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 09:09:11
问题 I have an Excel add-in I wrote in VBA, let's call it MyAddin.xlam . I have set the project name as MyAddin . When I open a second project and choose Tools->References... , MyAddIn appears just fine. Everything works. That's great. But.. for purely aesthetic reasons, I would like the listing to appear as My Addin in the list of References. Pretty much everything available in the list of potential References has spaces in the name. But if I try to rename my project to have a space in the name,

Office-JS: Excel Host API no longer available under Excel 2016 MSO

本小妞迷上赌 提交于 2019-12-11 08:37:09
问题 I'm currently running Windows 10 with Microsoft Excel 2016 MSO (16.04266.1001) 64-bit. I'm under the impression that that is the version installed via MSI. Over the course of the last few months I've implemented a React-based Excel add-in using the Excel Host APIs. Per the Excel JavaScript API requirement sets document available at the Office Dev Center, that build appears to contain the "ExcelApi 1.1, WordApi 1.1, and common API" requirement sets. As of yesterday, I am no longer able to

SpecialCells causing SheetSelectionChange event in Excel 2010

梦想的初衷 提交于 2019-12-11 07:22:37
问题 I have a test Macro Sub test() Dim rSrcMatrix As Range Set rSrcMatrix = Sheets("Code Matrix").Range("Xfer_To_Xfer_Matrix").Range("A1") Set rSrcMatrix = rSrcMatrix.Resize(rSrcMatrix.SpecialCells(xlCellTypeLastCell).Row, rSrcMatrix.SpecialCells(xlCellTypeLastCell).Column) End Sub I am using this macro to test my COM addin that I have created in VS2010. I have delegated the SheetSelectionChange event in the addin to some function. Now I notice that whenever I run this macro, Excel fires the

Get selected item's tag of Ribbon ComboBox control in VSTO (VB.Net)

与世无争的帅哥 提交于 2019-12-11 05:14:10
问题 I have a code to list time entry (In Time, Out Time, Comments, Employee Name) information for all the employees from SQL in Excel 2010 using Excel Add-In project. Here, I wanted to move step ahead to list time entry information for selected employee from the ComboBox control (which holds the employee name and employee id in label and tag properties respectively) place in Excel Ribbon using Excel Add-In. Here, I was unable to get the selected employee's tag (Id) from ComboBox that I have added

Excel add-in fails with 0x8004063E

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 03:41:31
问题 I have an Excel add in which used to work perfectly. Lately, many customers received the following error (in the end of this question). Environment details: Windows 7/8 64 bit. Microsoft Office 2013 64 bit Add in is compiled under .net 3.5 Any help will be highly appreciated. Exception from HRESULT: 0x8004063E ********** Exception Text ********** System.Runtime.InteropServices.COMException (0x8004063E): Exception from HRESULT: 0x8004063E at System.Runtime.InteropServices.Marshal