MakeWeb Method

       

Creates a new web from an existing folder. To create a new web without first creating a folder, see the Add method.

expression.MakeWeb(UserName, Password)

expression   An expression that returns a WebFolder object.

UserName   Optional String. The logon name of the user. You can use this option to create a default username for the web.

Password   Optional String. The password of the user. You can use this option to create a default password for the web.

Example

This example creates a new web from the existing Distributors folder. (The Distributors folder is a folder in the Rogue Cellars web.)

Private Sub MakeWeb()
    Dim myWeb As WebEx
    Dim myFolder As WebFolder

    Set myWeb = Webs("C:\My Webs\Rogue Cellars")
    myWeb.Activate
    Set myFolder = Active.RootFolder.Folders("Distributors")
    myFolder.MakeWeb
End Sub