The Edit method is used to open Microsoft FrontPage compatible files in a page window. These files include file formats such as HTML, CSS, and 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 WebFile object.
ViewMode Optional FpPageViewMode.
FpPageViewMode can be one of these FpPageViewMode constants. |
fpPageViewDefault default |
fpPageViewHtml |
fpPageViewNoFrames |
fpPageViewNormal |
fpPageViewNoWindow |
fpPageViewPreview |
Example
This example shows how to use the Edit method to open a file for editing.
Note To run this program, you must have a Web site open that contains a file called "RedWines.htm." 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