SmartTag Object
Excel Developer Reference |
Represents an identifier that is assigned to a cell.
Example
Use the Add method of the SmartTags collection to return a SmartTag object.
Once a SmartTag object is returned, you can store extra metadata to a smart tag by using the Add method with the Properties property.
See the following example for a demonstration of this feature. This example adds a smart tag titled "MSFT" to cell A1, then adds extra metadata called "Market" with the value of "Nasdaq" to the smart tag and then returns the value of the property to the user. This example assumes the host system is connected to the Internet.
Visual Basic for Applications |
---|
|
To view the extra metadata, use the XML property of the SmartTag object. This example, which builds upon the previous example, displays the extra metadata that was added to the smart tag in cell A1. The metadata for this smart tag represents the XML that would be passed to the action handler. This example assumes the host system is connected to the Internet.
Visual Basic for Applications |
---|
|
See Also