ActiveX Controls


Adding ActiveX / OLE Controls

ActiveX controls are represented as either Shape objects or InlineShape objects in Microsoft Word.
To modify the properties for an ActiveX control, you use the Object property of the OLEFormat object for the specified shape or inline shape.
Returns the InlineShape object that represents the new ActiveX control.

ActiveDocument.Shapes.AddOleControl(ClassType:= 
                                    Range:=Selection.Range)

ClassType - The programmatic identifier for the ActiveX control to be created.
Range -


Returns the Shape object that represents the new ActiveX control.

ActiveDocument.Shapes.AddOleControl(ClassType:= 
                                    Left:=10, _
                                    Top:=10, _
                                    Width:=10, _
                                    Height:=10, _
                                    Anchor:=False)

ClassType - The programmatic identifier for the ActiveX control to be created.
Left -
Top -
Width -
Height -
Anchor -



© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext