Name

workbook.XmlNamespaces

Synopsis

Returns the collection of XmlNamespace objects in a workbook. The XmlNamespaces collection is primarily used to install and manage XML expansion packs that provide SmartDocument features in Excel.

For example, the following code installs one of the sample expansion packs from the Smart Document SDK for all users:

sdoc = "C:\Program Files\Microsoft Office 2003 Developer Resources" & _
  "\Microsoft Office 2003 Smart Document SDK\Samples\SimpleSample" & _
  "\SourceFiles\manifest.xml"
ThisWorkbook.XmlNamespaces.InstallManifest sdoc, True

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.