HTMLProjectItem.LoadFromFile Method
Updates the text in the Microsoft Script Editor with text from the specified file (on disk).
Syntax
expression.LoadFromFile(FileName)
expression A variable that represents a HTMLProjectItem object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| FileName | Required | String | The fully qualified path of the text file that contains the text to be loaded. |
Example
This example determines whether the specified HTML project item is open; if the item is open, the example then loads script from the specified file.
| Visual Basic for Applications |
|---|
|