excel-dna

Remove AddIn path from UDF in Excel formula

痞子三分冷 提交于 2019-11-29 14:55:57
My addin was xla, now I use excelDNA, so it becomes xll, When I open spreadsheet built in previous version of My addin, for the UDF, it shows myUDF with path of xla. e.g "C:\Program Files\Installation folder\MyUDFs.xla!MyUDF", when I click Edit link and change source to "C:...\MyUDFs.xll" I got a pop up which says "Excel cannot update one or more links in this workbook. To update the links, open all the link source files(click Edit Links on the Data tab). To be sure all calculations are updated. press F9" I click OK, then the path of MyUDF changes from xla to xll, e.g. C:\Program Files

Get the current Workbook Object in C#

拜拜、爱过 提交于 2019-11-28 09:16:36
I've been writing an application in C# which creates Custom Document properties in an Excel spreadsheet, I have a function for this which takes in a Workbook Object... However, actually getting the current Workbook object is proving to be quite annoying, I am using ExcelDNA to add functionality, however, I can't seem to pass my function a valid Workbook COM object. This is the way I am currently doing it it seems to work really well using Excel = Microsoft.Office.Interop.Excel; Then you get active workbook //Gets Excel and gets Activeworkbook and worksheet Excel.Application oXL; Excel.Workbook

Get the current Workbook Object in C#

[亡魂溺海] 提交于 2019-11-27 02:48:04
问题 I've been writing an application in C# which creates Custom Document properties in an Excel spreadsheet, I have a function for this which takes in a Workbook Object... However, actually getting the current Workbook object is proving to be quite annoying, I am using ExcelDNA to add functionality, however, I can't seem to pass my function a valid Workbook COM object. 回答1: This is the way I am currently doing it it seems to work really well using Excel = Microsoft.Office.Interop.Excel; Then you

Excel Add-In not loading app.config with service reference config information

纵饮孤独 提交于 2019-11-26 21:59:03
问题 I've written an app with a service reference to make web services calls to a specific URL and it works great. I want to move this code into an Excel Add-In, but I run into this problem: Unhandled Exception Message: Could not find endpoint element with name 'ConnectivityHttpsSoap12Endpoint' and contract 'Connectivity.ConnectivityPortType' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element