The Edit method is used to open Microsoft FrontPage compatible files in a page window. These files include file formats such as HTML, CSS, ASP. To open files of other types use the Open method.
Note HTML files without extensions will not open with the Edit method.
expression.Edit(ViewMode)
expression An expression that returns a File object.
ViewMode Optional FpPageViewMode.
FpPageViewMode can be one of these FpPageViewMode constants. |
fpPageViewDefault default |
fpPageViewHtml |
fpPageViewNoFrames |
fpPageViewNormal |
fpPageViewNoWindow |
fpPageViewPreview |
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