Script.Location Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the location of the script anchor in the specified HTML document.
public:
property Microsoft::Office::Core::MsoScriptLocation Location { Microsoft::Office::Core::MsoScriptLocation get(); };
public Microsoft.Office.Core.MsoScriptLocation Location { get; }
member this.Location : Microsoft.Office.Core.MsoScriptLocation
Public ReadOnly Property Location As MsoScriptLocation
Property Value
Remarks
Script tags in an HTML document can appear anywhere between the <HTML> tags in the document. In Microsoft Word, Excel, or PowerPoint, only the script anchors located between the <BODY> tags are visible. Additional HTML script that appears before or after the <BODY> tags is stored in but isn’t visible to the user.
The Scripts collection contains all of the script anchors that appear in the document, whether inside or outside of the main body of the document. Using the Location
argument of the Add(Object, MsoScriptLocation, MsoScriptLanguage, String, String, String) method, you can insert script anchors within the <HEAD> and <BODY> tags in the HTML document. You can also use the Location property to determine where a particular script anchor is stored within the document.