Skip to sidebar Skip to content
Ipercube Technical
Jack of all trades, master of none
Date: Time: - Stardate:
Welcome, Log in by clicking  Here!
SS64
MDN
Stack
Code
GitHub
Wiki
Convert
V Studio
  • Home
  • VB Functions
    • Access Functions
    • Assembly Info
    • Color/Image Functions
    • Data Table Functions
    • Email Functions
    • Active Directory Functions
    • LDAP Functions
    • Excel Functions
    • Logging Functions
    • Source Code Retrieval
    • String Functions
    • Sql Functions
    • Object Utilities Functions
    • System and Utilities
    • Utility Forms
  • VB Classes
    • Environment Variables Helper
  • ABAP
    • ABAP Reports
    • ABAP HTTP Functions
Ipercube Technical
  • Home
  • VB Functions
    • Access Functions
    • Assembly Info
    • Color/Image Functions
    • Data Table Functions
    • Email Functions
    • Active Directory Functions
    • LDAP Functions
    • Excel Functions
    • Logging Functions
    • Source Code Retrieval
    • String Functions
    • Sql Functions
    • Object Utilities Functions
    • System and Utilities
    • Utility Forms
  • VB Classes
    • Environment Variables Helper
  • ABAP
    • ABAP Reports
    • ABAP HTTP Functions

Sheet Custom Property – Remove All Custom Properties from a Sheet

Removes all custom properties from the specified Excel worksheet.

It uses xlWriteSheetCustomProperties to clear all properties

VB
    Public Sub xlClearSheetAllCustomProperties(sheet As Worksheet)

        ' Create an empty DataTable with the expected schema
        Dim emptyTable As New Data.DataTable()
        emptyTable.Columns.Add("Property")
        emptyTable.Columns.Add("Value")

        ' Call the main function with the ReplaceAll flag set to True
        xlWriteSheetCustomProperties(sheet, emptyTable, RemoveAllBeforeWriting:=True)

    End Sub

Posted by ipercube


© 2026 Ipercube Design