How to edit recorded macro in Word 2011 for Mac

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.

Macros in Word 2011 for Mac

Step 2: Select the Macro that you want to edit and click Edit button.

Edit Macro in Word 2011

This should launch the Visual Basic Editor window as shown below.

Visual Basic Editor Window

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.

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.

Text Center Aligned

In Category: Apple, Mac, MS Office

Ravi Shankar

A Software developer and blogger who is always looking to provide technical help to the wider community.

Show 1 Comment
  • peter Cox September 7, 2015, 4:21 pm

    How do i make a macro in word office 2011 for mac? I want to chance the measurements of a picture.
    I can’t do it with the record button.


Leave a Comment

Get your free copies of the following tech guides by joining the Digital Answers mailing list.