NamedRange::ID Property

 

Gets or sets the identifying label for the NamedRange control when the page is saved as a Web page.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

property String^ ID {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The identifying label for the NamedRange control when the page is saved as a Web page.

Using this property on a NamedRange control that contains multiple cells will cause an exception to be thrown.

You can use an ID label as a hyperlink reference in other HTML documents or on the same Web page.

The following code example creates a NamedRange and then uses the ID property to set an ID that will be used if the workbook is saved as a Web page.

This example is for a document-level customization.

No code example is currently available or this language may not be supported.
Return to top
Show: