Take a Guess to Win Windows 10 Pro Key!
previous arrow
next arrow
Slider

The Skill Of Adding Picture Border In Microsoft Word

Date:2021-2-3 Author:Sandra

In order to distinguish the boundary between the picture and the text, or to beautify the document layout, we will add a border to the picture. Many people know how to add borders to pictures, but the author will teach you how to quickly add borders to pictures in batches today.

How to Add Border to a Piece of Picture?

  • Select the picture and go to Format in the toolbar to set the Picture Border. You can also adjust the Picture Effects behind the Picture Border.
  • You can also right-click the picture and choose Format Picture.
The Skill Of Adding Picture Border In Microsoft Word
The Skill Of Adding Picture Border In Microsoft Word
The Skill Of Adding Picture Border In Microsoft Word

How to Add Borders to Multiple Pictures in Batch?

If your word document contains a lot of pictures, this will waste much time to add borders one by one. Actually, Macro allows you to complete these quickly.

Step1: Go to View and click on Macros, then choose View Macros.

Copy the code below into the Microsoft Visual Basic for Applications window:

    Dim oInlineShape As InlineShape

   Application.ScreenUpdating = False

    For Each oInlineShape In ActiveDocument.InlineShapes

        With oInlineShape.Borders

            .OutsideLineStyle = wdLineStyleSingle

            .OutsideColorIndex = wdColorAutomatic

            .OutsideLineWidth = wdLineWidth050pt

        End With

    Next

    Application.ScreenUpdating = True

The Skill Of Adding Picture Border In Microsoft Word
The Skill Of Adding Picture Border In Microsoft Word

At last, click to run the code. You will find that the pictures in the word document have been adding a border.

The Skill Of Adding Picture Border In Microsoft Word
Copyright Statement: Regarding all of the posts by this website, any copy or use shall get the written permission or authorization from Myofficetricks.

Leave a Reply

Your email address will not be published. Required fields are marked *