Skip to content

Commit c92aa0d

Browse files
authored
bug: Cannot do this for multiple selection (#641)
When tabSelected="1", the resulting Excel will say "Cannot do this for multiple selected areas" Signed-off-by: Gary Jia <[email protected]>
1 parent 67e97f3 commit c92aa0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MiniExcel/OpenXml/Constants/WorksheetXml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal static string Dimension(string dimensionRef)
1616
internal const string StartSheetViews = "<x:sheetViews>";
1717
internal const string EndSheetViews = "</x:sheetViews>";
1818

19-
internal static string StartSheetView( int tabSelected=1, int workbookViewId=0 )
19+
internal static string StartSheetView( int tabSelected=0, int workbookViewId=0 )
2020
=> $"<x:sheetView tabSelected=\"{tabSelected}\" workbookViewId=\"{workbookViewId}\">";
2121
internal const string EndSheetView = "</x:sheetView>";
2222

0 commit comments

Comments
 (0)