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)

Syntax

'Declaration
<GuidAttribute("000C0341-0000-0000-C000-000000000046")> _
Public Interface Script _
    Inherits _IMsoDispObj
'Usage
Dim instance As Script
[GuidAttribute("000C0341-0000-0000-C000-000000000046")]
public interface Script : _IMsoDispObj

Remarks

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.

See Also

Reference

Script Members

Microsoft.Office.Core Namespace