

Sonic Frame replaces from simple background gradient controls to highly Themed Docks and Panel controls. The possible applications and uses of the control are truly unlimited due to the extra ordinary functions and properties included. Arrange and bound the controls by selecting the suitable design and colors. Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.Apply extra styles to your Applications easily with Sonic Frame ActiveX Control without wasting your valuable time. The following Click event procedure switches to print view and sets the magnification to 100 percent for the document where the command button named "cmdChangeView" resides. Me.TextBox1.Value = Me.TextBox1.Value + 1 Me.TextBox1.Value = Me.TextBox1.Value - 1 The text box value is decreased by one when the user clicks the lower spin-button arrow or the left spin-button arrow and is incremented by one when the user clicks the upper spin-button arrow or the right spin-button arrow.

The following SpinUp and SpinDown event procedures change the value of the TextBox control named "TextBox1" on the document where the SpinButton control named "SpinButton1" resides.
#How to get activex in office 365 code#
Writing event code for controls on documents is very similar to writing event code for controls on forms.

The Me keyword in an event procedure for an ActiveX control on a document refers to the document, not to the control. If you want to add form fields instead of ActiveX controls to your document to create an online form, use the Forms toolbar. For more information about using events with ActiveX controls, see the Control and dialog box events and the Using events with ActiveX controls topics. The other events listed in the Procedure drop-down list box are documented in Microsoft Forms Help. Microsoft Word implements the LostFocus and GotFocus events for ActiveX controls on a document. If you want the user to use the ActiveX controls but not change the layout of the document, protect the document by clicking the Protect Form button on the Forms toolbar. In design mode, ActiveX controls in the drawing layer are visible only in print layout view or Web layout view. A control that you add to the drawing layer is a Shape object, to which you gain access programmatically through the Shapes collection.Ĭontrols in the text layer are treated like characters and are positioned as characters within a line of text. To add a control to the text layer, hold down the SHIFT key while you click a control on the Control Toolbox.Ī control that you add to the text layer is an InlineShape object, to which you gain access programmatically through the InlineShapes collection. To add a control to the drawing layer, click the control on the Control Toolbox. You can add ActiveX controls to the text layer or drawing layer of the document. Remember the following points when you work with controls on documents: For general information about adding and working with controls, see Using ActiveX controls on a document and Creating a custom dialog box. You can add controls to your documents to create interactive documents, such as online forms.
