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. 'Change TextBox2 back to opaque background 'Change TextBox2 to a transparent background 'Change TextBox3 from Etched to BorderStyle 'Change TextBox1 from BorderStyle to Etched 'Swap borders between TextBox1 and TextBox3 ToggleButton2.Caption = "Transparent/Opaque background" TextBo圆.BackColor = RGB(0, 255, 0) 'Color - Green #1 TextBo圆.ForeColor = RGB(0, 64, 0) 'Color - Olive TextBox5.ForeColor = RGB(255, 0, 0) 'Color - Red TextBox4.BackColor = RGB(0, 0, 100) 'Color - Navy blue TextBox4.ForeColor = RGB(255, 0, 255) 'Color - Magenta TextBox3.BorderColor = RGB(0, 0, 0) 'Color - Black 'Define BorderColor for later use (when borderstyle=fmBorderStyleSingle) To place text in a rounded shape, use AutoShapes. Under Text Box Margins, adjust the measurements to increase or decrease the distance between the text and the outer border of the text box or a shape.
TextBox3.BackColor = RGB(0, 255, 255) 'Color - Cyan On the shortcut menu, click Format