Repository navigation
v2.29.2
Inserting and removing rows and columns, and editing a file you opened. If you
use either, this one is worth taking.
Fixed
insertRowat or past the end of the sheet erased the sheet. Every
existing row was replaced by the one new row, sosheet.insertRow(sheet.maxRows)
lost all your data.insertColumninside the sheet cutrowsdown. The width was set to the
insert point, soinsertColumn(0)on a five-column sheet leftrowsshowing
one column andremoveColumnthen ignored the rest. Inserting at the last row
hid that row fromrowsin the same way, and removing a row or column inside
the sheet left the size one too high.- Editing an opened file duplicated its charts and pivot tables. Opening a
workbook, inserting a row and saving wrote each one twice. What a saved file
carries as written now moves in place: images and charts, chart series, pivot
locations and sources, conditional formats, sparklines, page breaks and
comments all stayed at their old addresses before. - Saving a workbook with an inserted image more than once leaked parts. Each
save added another drawing and another copy of the image, and later saves could
drop the worksheet's link to its drawing. - A formula range lost an end when its first or last row was removed.
SUM(B2:B5)becameSUM(#REF!:B4)rather thanSUM(B2:B4), and whole-column
and whole-row ranges such asSUM(B:C)andSUM(2:4)did not move at all. - A structured reference was rewritten as if it were a cell. A column called
Q1turnedSUM(Sales[Q1])intoSUM(Sales[Q2])after an insert, which is
#REF!. - An insert or remove threw away details it should have kept. A table lost
its totals row, a chart lost its bubble sizes, series styling and of-pie split,
and a formula lost its cached result, so a viewer that does not recalculate
showed a blank. A column edit inside a table now takes the column's declared
name and total along. - The table
countandcountNumstotals were swapped.countcounted only
numbers andcountNumscounted everything, the opposite of Excel and of their
own documentation. A file from Excel read them the wrong way round too.
Changed
- A chart, sparkline, validation list or internal link on another sheet now
follows the data it reads when that sheet has a row or column edit. - A chart, image or pivot already saved in a file is kept when the row or column
holding its corner is removed, and moves to the one that took its place, as in
Excel. One added since the last save is still removed along with its row.
Notes
The size fixes change maxRows, maxColumns and rows after an insert or remove
to the correct values. Code that worked around the old numbers may need a look.