We had earlier seen the steps for recording macro in Word 2011 for Mac . Let us you how to change the date and time text to centred align instead of right align.Listed below are steps for editing a Macro using Visual Basic Editor.
Step 1: Click Tools menu, navigate to Macro then Macros submenu.
Step 2: Select the Macro that you want to edit and click Edit button.
This should launch the Visual Basic Editor window as shown below.
Step 3: Navigate to the function which starts with Sub InsertDateAndTime() in Visual Basic Editor.
Step 4: Then navigate to the line where the right alignment is set for Paragraph
Selection.ParagraphFormat.Alignment = wdAlignParagraphRight
Step 5: Now change paragraph alignment from wdAlignParagraphRight to wdAlignParagraphCenter
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Step 6: Save the changes done to the Macro by clicking File menu and selecting Save Normal.dotm.
Now close the Visual Basic Editor window and try running the Macro. You should notice the date and time text is now Center aligned.