excel-addins

Retrieve User Stories and associated Test Cases with it

十年热恋 提交于 2019-12-11 03:34:53
问题 I am using Rally excel add-in and trying to retrieve User Stories and associated Test Cases. I added additional column to the report "User Story" to retrieve TestCase.Name and also tried TestCase.FormattedID. In both cases I receive empty column. What am I doing wrong? Also there is a column "Number of Test Cases" that also always returns nothing. 回答1: Here is a custom app that builds a grid of user stories and associated test cases. Looks like this is the data you want to display: The code

Excel add-in - get workbook name of “thisworkbook”

允我心安 提交于 2019-12-11 01:32:01
问题 I can't get the name of the workbook when I use a add-in. I'm trying to develop a add-in that runs each time you open Excel and reads the filename of the open file. If the file name is XCFIL.SKV then do something... This code should do it, but it doesn't. What am I missing? The code stops and if I debug and press F8 it works fine, but it won't run on it's own. Private Sub Workbook_Open() If ThisWorkbook.Name = "XCFIL.SKV" Then MsgBox "y" End If End Sub 回答1: Background: Based in this statement

Release COM when developing an Excel Addin?

折月煮酒 提交于 2019-12-10 21:59:10
问题 I understand that I should release COM objects when using interop. Are things a bit different when developing and Add-In, Excel for example? Here is a loop I have and I was curious to know if the Marshal.ReleaseComObject is necessary? foreach (var sheet in results.Sheets) { var newSheet = workbook.AddSheet(); newSheet.SetSheetTabColor(sheet.TabColor); newSheet.SetSheetName(sheet.TabName); newSheet.Cells.SetFont("Calibri", 8); newSheet.FreezeRow(1); var endRow = sheet.Data.GetUpperBound(0) + 1

How to suppress Disable add-in dialog when Excel is force close

帅比萌擦擦* 提交于 2019-12-10 20:33:53
问题 My addin is written in c#, NetOffice, ExcelDNA using WPFframework. Some part uses winforms, too. The main UI is WPF When there is a modal dialog displayed, users force close Excel. Next time when they launch excel, Excel will say " Excel experienced a serious problem with the ' * ' add-in. If you have seen this message multiple times, you should disable this add0in and checke to see if an update is available. Do you want to disable this add-in?" Yes, No Users usually click Yes or enter

How to copy range formatting in office.js?

穿精又带淫゛_ 提交于 2019-12-10 17:01:31
问题 Tried the following code that I pieced together from various sources but it doesn't seem to be working. Do I need to go through each individual property and assign them one by one? Excel.run(function (ctx) { var worksheet = ctx.workbook.worksheets.getItem(worksheetName); var range = worksheet.getUsedRange(); range.load(["formulasLocal", "address", "format/*", "format/fill", "format/borders", "format/font"]); var newWorksheet = ctx.workbook.worksheets.add(worksheetName + " -Copy"); return ctx

Excel AddIn Click Once deployment issue

此生再无相见时 提交于 2019-12-10 16:54:51
问题 When I create a Excel 2010 Add-in project in Visual Studio 2010, and configure my prerequisite publish options for click once deployment, the 'Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64) option item, has a warning indicator over the icon, which screen tip says "Prerequisite could not be found for bootstrapping". Once I try to publish, it publishes fine, however, I get the warning: "Item 'Microsoft.VSTORuntime.4.0' could not be located in 'C:\Program Files\Microsoft

How to reuse Core VBA functions (UDFs) across projects, but not show them in cell insert function

一笑奈何 提交于 2019-12-10 13:11:47
问题 I have an Addin with "core" functions and subs that I want to reference and use in different Addins or VBA projects. Because of the code reuse and single update principles. For example, a function, that filters collection members based on criteria and returns a sub-collection. The code itself is not an issue here. Public Function listNamesContaining(ByVal NamesInput As Names, ByVal ContainsCriteria As String) As Collection Dim NameMember As Name Set listNamesContaining = New Collection For

Possible to tell which workbook called a function in an Excel Add-In (xla)

[亡魂溺海] 提交于 2019-12-10 12:57:51
问题 I want to write a little logging function in an excel add-in that I will be calling from many different workbooks. I'd like to be able to just call it by passing only the log text, and the log function itself could handle the timestamp, workbookname , etc. However, I cannot use either ThisWorkbook or ActiveWorkbook to determine which workbook was responsible for making the call, as Thisworkbook will return a reference to the add-in itself, whereas VBA code running in a workbook other than the

Unable to run Excel VSTO Add-ins

允我心安 提交于 2019-12-10 12:09:44
问题 Trying to run an Excel 2013 VSTO Add-ins project, and I keep on getting an error that says that: "System.Security.SecurityException: The solution cannot be installed because it is signed by a publisher whom you have not yet chosen to trust. If you trust the publisher, add the certificate to the Trusted Publisher list." The project has a key file with signature algorithm sha256RSA and certificate issued to/by the Windows User. Any idea how to get around this ? 回答1: Try the solutions from the

Excel JS Add-In works in Excel but not Excel Online

微笑、不失礼 提交于 2019-12-10 11:46:50
问题 I've built an Excel JS Task Pane add-in using the WoodGrove Expense Trends sample and have validated that it runs correctly in Excel 2016 on my machine. However, when I go to Excel Online and try to add the add-in (via uploading the manifest from my machine), I get "Your add-in manifest is not valid." I'm not sure what it is about this manifest that's valid on my machine but not in Excel Online. Anyone encountered this before or have any diagnosis ideas? It's somewhat akin to banging my head