Script Interface

Represents a block of HTML script in a Microsoft Word document, on a Microsoft Excel spreadsheet, or on a Microsoft PowerPoint slide.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

public interface Script : _IMsoDispObj

The Script object is a member of the Scripts collection.

Use Scripts.Item(index), where index is the name, ID, or index number of a script, to return a single Script object. Each Script object is identified by the Id property, which provides a convenient name you can use to access the script.

You can specify the scripting language used in the script by changing the Language property.

You can check the location of the script anchor shape within an HTML document by using the Location property.

You can check or set attributes added to the <SCRIPT> tag (with the exception of the LANGUAGE and ID attributes) by using the Extended property.

You can check or set the script text associated with a given script by using the ScriptText property.