Adds a custom page size to the collection
Syntax:
Function Add(ByVal Name As String, ByVal Width As Double, ByVal Height As Double) As PageSize
Parameters:
Name Type Description
Name
String
Width
Double
Height
Double
Remarks:
The Add method adds a custom page size to a collection.
Examples:
The following VBA example adds a new page size named Test Paper Size, which has a width of 5.5" and a height of 9.5".
Public Sub PageSizes_Add()
Dim ps As PageSizes
Dim d As Document
Set d = CreateDocument
Set ps = d.PageSizes
ps.Add "Test Paper Size", 5.5, 9.5 
End Sub