CreateFromProgID Method Example

The following example creates the FixControlContainer and then the AlarmSummary control by specifying its ProgID.

Dim iActiveX As Object

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

iActiveX.CreateFromProgId "ALARMSUMMARYOCX.AlarmSummaryOCXCtrl.2"