Skip to content

Commit

Permalink
fix vb syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeebowen committed Jan 2, 2024
1 parent 8528f4d commit 5a358a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/spreadsheet/insert_a_chartto/vb/Program.vb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Module MyModule
Using document As SpreadsheetDocument = SpreadsheetDocument.Open(docName, True)

' <Snippet1>
Dim sheets As IEnumerable(Of Sheet) = document.WorkbookPart.Workbook.Descendants(Of Sheet)() _.Where(Function(s) s.Name = worksheetName)
Dim sheets As IEnumerable(Of Sheet) = document.WorkbookPart.Workbook.Descendants(Of Sheet)().Where(Function(s) s.Name = worksheetName)

If sheets.Count() = 0 Then
' The specified worksheet does not exist.
Expand Down

0 comments on commit 5a358a3

Please sign in to comment.