summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-07-16 12:50:13 +0800
committerxuri <xuri.me@gmail.com>2022-07-16 12:50:40 +0800
commit40ed1d1b81b4d30165bb73e9406e59ddbdb76fe2 (patch)
tree10bb74843b1272e7f9706959cd498ac70da25c70 /sheet.go
parent6429588e1448f70539774a88840f094829cb9e07 (diff)
Fix potential file corrupted when changing cell value or the col/row
- Remove shared formula subsequent cell when setting the cell values - Support adjust table range when removing and inserting column/row
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/sheet.go b/sheet.go
index 2a722c9..6dda811 100644
--- a/sheet.go
+++ b/sheet.go
@@ -478,12 +478,11 @@ func (f *File) SetSheetBackground(sheet, picture string) error {
}
// DeleteSheet provides a function to delete worksheet in a workbook by given
-// worksheet name, the sheet names are not case-sensitive. The sheet names are
-// not case-sensitive. Use this method with caution, which will affect
-// changes in references such as formulas, charts, and so on. If there is any
-// referenced value of the deleted worksheet, it will cause a file error when
-// you open it. This function will be invalid when only the one worksheet is
-// left.
+// worksheet name, the sheet names are not case-sensitive. Use this method
+// with caution, which will affect changes in references such as formulas,
+// charts, and so on. If there is any referenced value of the deleted
+// worksheet, it will cause a file error when you open it. This function will
+// be invalid when only one worksheet is left
func (f *File) DeleteSheet(name string) {
if f.SheetCount == 1 || f.GetSheetIndex(name) == -1 {
return