Edit Method Example

This example shows how to use the Edit method to open a file for editing.

Note   You must have a web open to run this program with a file called RedWines.htm in the web or you may substitute a file of your choice.

Private Sub ModifyFile()
Dim myFile As WebFile

Set myFile = ActiveWeb.RootFolder.Files("RedWines.htm")

myFile.Edit
End Sub