Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Allows you to get the namespace corresponding to the specified prefix.
Syntax
expression.LookupNamespace(Prefix)
expression An expression that returns a CustomXMLPrefixMappings object.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Prefix | Required | String | Contains a prefix in the prefix mapping list. |
Return value
String
Remarks
If no namespace is assigned to the requested prefix, the method returns an empty string ("").
Example
The following example retrieves the namespace corresponding to the prefix argument.
Dim objCustomPrefixMappings As CustomPrefixMappings
Dim strNamespace As String
' Gets the namespace corresponding to the prefix.
strNamespace = objCustomPrefixMappings.LookupNamespace("xs")
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.