' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As CellsDocument = Document.Load(Of CellsDocument)(Utilities.MapSourceFilePath(FilePath))
For Each section As CellsHeaderFooterSection In doc.Worksheets(0).HeadersFooters(OfficeHeaderFooterType.HeaderPrimary).Sections
section.Script = Nothing
section.Image = Nothing
Next
doc.Save()
End Using