CreateFromDialog Method Example

The following example creates the FixControlContainer object and then displays the Insert Object dialog box to allow the user to select which ActiveX control to create.

Dim iActiveX As Object

Set iActiveX = Application.ActiveDocument.Page.BuildObject("oleobject")

iActiveX.CreateFromDialog