Add Method (Pages Collection) Example

This Visual Basic for Applications example returns a new custom page named "My Page" (the same call without a name will return the next available page for customization — for example, "Custom1").

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olContactItem)
Set myPages = myItem.GetInspector.ModifiedFormPages
Set myPage = myPages.Add("My Page")