Search code examples
excelsecuritydocument

What are Excel labels called and how are they stored?


My company recently implemented this as a requirement before saving a document:

enter image description here

In this case, the options are:

enter image description here

But I'm guessing that's specific to my company, not an Excel thing. I could be wrong.

I want to be able to access this via all of the usual suspects (VBA, Interop, EPPlus, ClosedXML) and some unusual suspects (Dev Express) but don't really know what it's called. When I search for Excel Label, I get lots of stuff thats... not this.

What is this object/property called? Bonus: Snippet of how to access via VBA?


Solution

  • That looks like a "Sensitivity Label" - mandatory by IT policy. See Microsoft Learn: Sensitivity Labels

    I found some useful VBA at MrExcel