Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

[GuidAttribute("000C0341-0000-0000-C000-000000000046")]
[TypeLibTypeAttribute()]
[DefaultMemberAttribute("ScriptText")]
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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft