GroupDocsGists
10/19/2017 - 11:07 AM

Documents-ClearSectionOfHeaderFooterExcel.vb

' 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))
    Dim section As CellsHeaderFooterSection = doc.Worksheets(0).HeadersFooters(OfficeHeaderFooterType.HeaderEven).Sections(CellsHeaderFooterSectionType.Left)
    section.Image = Nothing
    section.Script = Nothing

    doc.Save()
End Using