

In the Properties window, set the properties that you want for the text box, such as Linked Cell. With the Text Box selected on the worksheet, click the Properties command on the Ribbons Developer tab. Point to Weight, and then choose the line weight you want. Click Insert, then click the Text Box control tool On the worksheet, draw a rectangle with the Text Box tool, to create the Text Box. Select the picture to which you want to add, change, or remove a border.Ĭlick Picture Format, and then click the arrow next to Picture Border.Įither click the color you want, or mix your own color by clicking More Outline Colors. Remove the border from the shape or text box
#Macro to add border to text box in word code#
A new user form will appear in the Project Explorer and will be shown in the Code Window on the right. To insert a new user form into your code, select the UserForm option from the Insert Menu. Point to Dashes, and then click the line style that you want. To insert a Text Box into a VBA form, we first need to create the form. Point to Weight, and then choose the line weight that you want. Regards, Imad Habash (ACA,ACP) Please mark Accept as Solution if your question is answered. there is three shape options Circles/Slots/ Rectangles. Select the shape or text box to which you want to add, change, or remove a border.Ĭlick Shape Format, and then click the arrow next to Shape Outline.Įither click the color that you want, or mix your own color by clicking More Outline Colors.Īdd or change the thickness of the border Hi, if you have express tools then use tcircle command. (The smaller the point size ("pt"), the thinner the line is.)Īdd or remove a border for a shape or text box

With the shape selected, on the Shape Format tab, select Shape Outline > Sketched, and then select a line width. Select an existing shape in your document, or draw a new one.
#Macro to add border to text box in word for mac#
If you're using Microsoft 365 for Mac (version 16.28 or later), you can give a casual, hand-drawn look to shapes with the Sketched outline. Then borders are added to every row of selected texts. 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.
In the Borders and Shading dialog box, select the Up, Down, Left and Right border boxes in the Preview section, select Text from the Apply to drop-down, and then click the OK button. On the shortcut menu, click Format