excel-addins

.xlam add-in does not work on other computers giving two workbooks with the same name error

纵饮孤独 提交于 2020-07-10 08:17:20
问题 I created 2 simple macros just to delete some columns and sort the data on Excel. It does not open a file, just works on the active workbook. I saved the macros as .xlam add-in to distribute other team mates. I also created a custom Ribbon menu. In the ribbon menu I created 2 buttons and assigned my macros one by one. Now, on my computer, when I click on the button in the Ribbon menu, it calls the macro and the macro works perfectly. When I add the same add-in to my friends' computers it

Cannot Run Excel Add-in Functions

做~自己de王妃 提交于 2020-06-29 06:43:33
问题 I have an Excel AddIn that I load from a C# file. On a spreadsheet, I am able to call functions from this AddIn without trouble, however, I am unable to do so using VBA. Suppose the name of the addin is "ExcelAddIn" and the class in question is "Functions". In VBA, I have made available the reference (via Tools > References) and I would have expected the following to work: Dim addin As ExcelAddIn.Functions Set addin = New ExcelAddIn.Functions result = addin.ArbitraryFunction(...) But this

How to add a new connection using Office JS Excel Add-In to retrieve and show data from an OData Service?

和自甴很熟 提交于 2020-06-29 03:47:13
问题 We use the following method to add a connection to our OData service in VSTO Excel Add-In. Now we are planning to rewrite the add-ins using Office JS. What is the similar approach in Office JS Excel Add-In to load data from the OData service? string connectionString = "DATAFEED;Data Source=http://localhost:8443/OData/ODataService.svc/Products?$filter=Company_Code eq 'TY';Namespaces to Include=*;Max Received Message Size=4398046511104;Integrated Security=Basic;User ID=testuser;Password=123

Invalid Hyperlink: Malformed URI is embedded as a hyperlink in the document

廉价感情. 提交于 2020-04-09 20:31:26
问题 I'm using the OpenXml namespace in my application. I'm using this to read the XML within an Excel file. This works fine with certain excel files but on others I get a run time error saying Invalid Hyperlink: Malformed URI is embedded as a hyperlink in the document. I get the run time on the following line using (var spreadsheet = DocumentFormat.OpenXml.Packaging.SpreadsheetDocument.Open(filePathCopy, true)) I'm not sure why it works for some Excel files and doesn't work on others. 回答1:

Invalid Hyperlink: Malformed URI is embedded as a hyperlink in the document

我与影子孤独终老i 提交于 2020-04-09 20:31:03
问题 I'm using the OpenXml namespace in my application. I'm using this to read the XML within an Excel file. This works fine with certain excel files but on others I get a run time error saying Invalid Hyperlink: Malformed URI is embedded as a hyperlink in the document. I get the run time on the following line using (var spreadsheet = DocumentFormat.OpenXml.Packaging.SpreadsheetDocument.Open(filePathCopy, true)) I'm not sure why it works for some Excel files and doesn't work on others. 回答1:

Avoid double execution of application level events in aa add-in (xlam)

大憨熊 提交于 2020-02-25 04:08:52
问题 I have a xlam that works at open & close of the workbook. In order to do this I've created a class module with the next code: ''''''''''''''''''''''' Setup Event ''''''''''''''''''''''''''''''''''''''''''''''''' Public WithEvents appevent As Application ''''''''''''''''''''''' Setup Application at Close'''''''''''''''''''''''''''''''''''''''''''' Private Sub appevent_WorkbookBeforeClose(ByVal Wb As Workbook, Cancel As Boolean) MsgBox("The workbook " & Wb.Name & " will close now") End Sub ''''

Avoid double execution of application level events in aa add-in (xlam)

社会主义新天地 提交于 2020-02-25 04:08:48
问题 I have a xlam that works at open & close of the workbook. In order to do this I've created a class module with the next code: ''''''''''''''''''''''' Setup Event ''''''''''''''''''''''''''''''''''''''''''''''''' Public WithEvents appevent As Application ''''''''''''''''''''''' Setup Application at Close'''''''''''''''''''''''''''''''''''''''''''' Private Sub appevent_WorkbookBeforeClose(ByVal Wb As Workbook, Cancel As Boolean) MsgBox("The workbook " & Wb.Name & " will close now") End Sub ''''

Avoid double execution of application level events in aa add-in (xlam)

微笑、不失礼 提交于 2020-02-25 04:08:09
问题 I have a xlam that works at open & close of the workbook. In order to do this I've created a class module with the next code: ''''''''''''''''''''''' Setup Event ''''''''''''''''''''''''''''''''''''''''''''''''' Public WithEvents appevent As Application ''''''''''''''''''''''' Setup Application at Close'''''''''''''''''''''''''''''''''''''''''''' Private Sub appevent_WorkbookBeforeClose(ByVal Wb As Workbook, Cancel As Boolean) MsgBox("The workbook " & Wb.Name & " will close now") End Sub ''''