How to: Align the Caption of an Option Buttion with the Control
Article
Outlook Developer Reference
The following example demonstrates the Alignment property used with several OptionButton controls. In this example, the user can change the alignment by clicking a ToggleButton.
To use this example, copy this sample code to the Script Editor of a form. To run the code you need to open the form so the Open event will activate. Make sure that the form contains the following controls:
Two OptionButton controls named OptionButton1 and OptionButton2.
A ToggleButton named ToggleButton1.
Dim OptionButton1
Dim OptionButton2
Dim ToggleButton1
Sub Item_Open()
Set OptionButton1 = Item.GetInspector.ModifiedFormPages.Item("P.2").Controls("OptionButton1")
Set OptionButton2 = Item.GetInspector.ModifiedFormPages.Item("P.2").Controls("OptionButton2")
Set ToggleButton1 = Item.GetInspector.ModifiedFormPages.Item("P.2").Controls("ToggleButton1")