excel-2016

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

孤人 提交于 2019-12-07 01:56:28
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 into a wall at this point. Michael Zlatkovsky - Microsoft Taking a guess from looking at the manifest,

“Unable to set the FreezePanes property of the Window class” Excel 2016 (office 365)

浪子不回头ぞ 提交于 2019-12-07 01:47:06
问题 I've build an excel addin which fills a worksheet with data from a database. I also add some styling and lock some rows and columns by using FreezePanes. worksheet.Activate(); worksheet.Application.ActiveWindow.FreezePanes = false; worksheet.Application.ActiveWindow.SplitRow = 4; worksheet.Application.ActiveWindow.SplitColumn = 11; worksheet.Application.ActiveWindow.FreezePanes = true; This all worked like a charm in excel 2010/2013 but I recently switched to excel 2016 (office 365) and from

How to delete entire row when case sensitive duplicates are found in Excel (for 100k records or more)?

烈酒焚心 提交于 2019-12-06 13:33:52
问题 This is a follow up question from How to remove duplicates that are case SENSITIVE in Excel (for 100k records or more)? . Since his code procedure manipulates the data of column A only, I'd like to also delete the entire row of data if case-sensitive duplicate is found. Case sensitive meaning: Case1 case1 cASE1 Are all unique records. 回答1: You can use a Dictionary to check for binary uniqueness and variant arrays to speed things up. To use the dictionary you will need to include a reference

Wrong Excel Window in Focus after Workbook_Open

ぃ、小莉子 提交于 2019-12-04 22:54:16
问题 My recent upgrade to Office 365 / Excel 2016 has caused some unwanted behavioral changes. Workbook("Portfolio Appreciation") contains a Workbook_open procedure which checks to see if Workbook("Index Returns") is open; if it is not, it will open that workbook. With Excel 2007, Index Returns would open in the background and stay there, which is the desired behavior. It would be "in a window" and could be viewed, in the same Excel window, using the Arrange All option on the Window tab of the

How to delete entire row when case sensitive duplicates are found in Excel (for 100k records or more)?

大兔子大兔子 提交于 2019-12-04 19:14:29
This is a follow up question from How to remove duplicates that are case SENSITIVE in Excel (for 100k records or more)? . Since his code procedure manipulates the data of column A only, I'd like to also delete the entire row of data if case-sensitive duplicate is found. Case sensitive meaning: Case1 case1 cASE1 Are all unique records. CallumDA You can use a Dictionary to check for binary uniqueness and variant arrays to speed things up. To use the dictionary you will need to include a reference to Microsoft Scripting Runtime Library (Tools > References > Microsoft Scripting Runtime library) I

copy the same row from multiple sheets into one sheet in excel

百般思念 提交于 2019-12-04 05:51:12
问题 I need to copy the same row from multiple sheets into one row. Example: I have an excel file with 5 sheets. I have to copy the 10th row (or the 15th row, or the 21th row) of every sheet in a 6th sheet, in the order of the sheets. Thanks in advance. 回答1: This code will copy 7th row from all first 5 sheets into 6th sheet. Sub row_copy() For i = 1 To Worksheets.Count - 1 Sheets(i).Rows(7).Copy Sheets(6).Cells(i, 1) Next i End Sub 回答2: Here is a sample for 6 sheets and rows # 7 : Sub copyrow()

Wrong Excel Window in Focus after Workbook_Open

♀尐吖头ヾ 提交于 2019-12-03 14:53:11
My recent upgrade to Office 365 / Excel 2016 has caused some unwanted behavioral changes. Workbook("Portfolio Appreciation") contains a Workbook_open procedure which checks to see if Workbook("Index Returns") is open; if it is not, it will open that workbook. With Excel 2007, Index Returns would open in the background and stay there, which is the desired behavior. It would be "in a window" and could be viewed, in the same Excel window, using the Arrange All option on the Window tab of the View ribbon. With Excel 2016, if it gets opened by the Workbook_Open procedure, Index Returns opens in its

VBA code to filter a pivot table based on the value in a Cell

北城余情 提交于 2019-12-02 13:11:20
I’ve searched and tried everything I could find on how to filter a pivot table via VBA code referencing the value of a cell. The table only has one filter and it’s called “name”, this table is part of a score card that I’m putting together and the pivot itself is named “data” the sheet is named “report” and the cell I’m referencing is A5. I’m able to do simple things in VBA and have been using it here and there for a couple of years however this one thing has me pulling my hair out. Could someone please break this down to me in simpleton terms First up, a couple of alternatives to VBA, in case

VBA to open several workbooks, copy specific data, remove duplicate rows and paste the information in a new workbook

柔情痞子 提交于 2019-12-02 10:19:27
I know the title is not that clear but I hope I can explain it better in this description. I'm new to VBA and I need to write some code that does the following: . Opens several workbooks in a specific folder and copies information from a table in the middle of the source sheets (only one actives) to a target Sheet1 in a new workbook. Problem 1: the tables have the same number of columns but different number of rows (originally they vary from A42 to L##(?) because users can add or remove rows, or leave them blank) so what I did was create a new hidden sheet in each of the source files that has

Office.js Excel: Improve performance when writing rows with formatting

拜拜、爱过 提交于 2019-12-01 06:50:20
问题 I can write 25000 rows x 3 columns of plain text in under .3 seconds which is fantastic. However, as soon as I add more than plain text (formatting, formulas, cell coloring, conditional formatting, columnWidth adjustments, etc) it takes dramatically longer to finish. For example, I wrote the same 25000 rows (x 1 column) with range.getCell(i, 0).format.fill.color = 'yellow' and it took 31.223 seconds, even using suspendApiCalculationUntilNextSync() . What can I do to get better write