


Go to the Line and Page Breaks tab and see if Page break before is checked.
#How to center text in word only first page how to
Sometimes a table or a table row can shift to a new page and you don’t know why or how to get it back. 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.Based on a writing tip I wrote for my work colleagues. The RightMargin property is used to return and set the right margin setting. The LeftMargin property is used to return and set the left margin setting. The PageSetup object contains all the page setup attributes of a document (such as left margin, bottom margin, and paper size) as properties. The following example increases the left and right margins by 0.5 inch. The following example toggles bold formatting of the selected text. If the space-before value is anything other than 12, the SpaceBefore property is set to 12 points.

The macro retrieves the current space before value, and if the value is 12 points, the space-before formatting is removed (the SpaceBefore property is set to zero). The following example toggles the space-before formatting of the first paragraph in the selection. Switching the space before a paragraph between 12 points and none Set rngFormat = ActiveDocument.Range(Start:=0, End:=0) The word "Title" is formatted with 24-point Arial font. The first paragraph is center-aligned and one half-inch space is added after the paragraph.

The following example adds the word "Title" at the top of the current document. Inserting text and applying character and paragraph formatting ParagraphFormat.Alignment = wdAlignParagraphJustify Start:=ActiveDocument.Paragraphs(1).Range.Start, _Įnd:=ActiveDocument.Paragraphs(3).Range.End) The Range is formatted by applying properties of the Font object and the ParagraphFormat object. The following example defines a Range object that refers to the first three paragraphs in the active document. Use the Font property to access character formatting properties and methods and the ParagraphFormat property to access paragraph formatting properties and methods. The following example uses the Selection property to apply character and paragraph formatting to the selected text. This topic includes Visual Basic examples related to the tasks in the following sections.
