Create a Simple PowerPoint Macro to Resize Photos

01
of 08

Create a PowerPoint Macro - The Sample Scenario

Create a macro in PowerPoint to reduce the size of the picture
Create a macro in PowerPoint to reduce the size of the picture. © Wendy Russell

You have taken wonderful photos with your new camera. You used a high resolution so that you have crisp and clear pictures. All the photos are the same size. However, the photos are much too large for the slides when you insert them into PowerPoint. How can you speed up the process of resizing them without doing the tedious task for each picture?

The answer - make a macro to do the job for you.

Note - This process works in all versions of PowerPoint 97 - 2003.

Steps to Create the Macro

  1. Choose Insert > Picture > From File... from the menu.
  2. Locate the picture on your computer and click the Insert button.
  3. Repeat this process for each of your photos. Do not be concerned that the photos are too large for the slides at this point.

02
of 08

Practice the PowerPoint Macro Steps - Resize a Picture

Access the Format Pictures dialog box in PowerPoint
Access the Format Pictures dialog box. © Wendy Russell

Before you create your macro to automate the task, you need to practice the steps and make sure exactly what you want to do.

In this example, we need to resize all of our pictures by a certain percentage. Try out resizing the picture on one slide until you are happy with the result.

Steps to Resize a Picture

  1. Right click on the picture and choose Format Picture... from the shortcut menu. (or click on the picture and then click the Format Picture button on the Picture toolbar).
  2. In the Format Picture dialog box, click on the Size tab and make the necessary changes from the options there.
  3. Click OK to complete the changes.

03
of 08

Practice the PowerPoint Macro Steps - Access the Align or Distribute Menu

Check box next to Relative to Slide on Align and Distribute menu
Check box next to Relative to Slide on Align and Distribute menu. © Wendy Russell

In this scenario, we want our picture alignment to be in relation to the slide. We will align the picture in the center of the slide, both horizontally and vertically.

From the Drawing toolbar choose Draw > Align or Distribute and make sure there is a checkmark beside Relative to Slide. If there is no checkmark, click on the ​Relative to Slide option and this will place a checkmark beside this option. This check mark will remain until you choose to remove it at a later time.

04
of 08

Record the PowerPoint Macro

recording a macro in PowerPoint
Recording a macro. © Wendy Russell

Once all pictures are inserted in the slides, return to the first picture slide. Undo any changes you had made earlier in practice. You will be repeating those steps again to record the macro.

Choose Tools > Macro > Record New Macro... from the menu.

05
of 08

Record Macro Dialog Box - Name the PowerPoint Macro

Macro name and description
Macro name and description. © Wendy Russell

The Record Macro dialog box contains three text boxes.

  1. Macro name - Enter a name for this macro. The name can contain letters and numbers, but must begin with a letter and cannot contain any spaces. Use the underscore to indicate a space in the macro name.
  2. Store macro In - You can choose to store the macro in the current presentation or another currently open presentation. Use the drop-down list to choose another open presentation.
  3. Description - It is optional whether you enter any information in this text box. I believe it is helpful to fill in this text box, just to jog the memory if you should look at this macro at a later date.

Click on the OK button only when you are ready to proceed because the recording starts immediately once you click OK.

06
of 08

Steps to Record the PowerPoint Macro

Click the stop button to stop the recording of the macro
Click the stop button to stop the recording of the macro. © Wendy Russell

Once you have clicked OK in the Record Macro dialog box, PowerPoint begins recording every mouse click and key stroke. Proceed with the steps to create your macro to automate the task. When you have finished, click the Stop button on the Record Macro toolbar.

Note - Make sure you have placed a check mark beside Relative to Slide in the Align or Distribute menu as mentioned in Step 3.

  1. Steps to Align Pictures to the Slide
     
    • Click Draw > Align or Distribute > Align Center to align the picture horizontally on the slide
    • Click Draw > Align or Distribute > Align Middle to align the picture vertically on the slide
  2. Steps to Resize the Picture (refer to Step 2)
    • Right click on the picture and choose Format Picture... from the shortcut menu. (or click on the picture and then click the Format Picture button on the Picture toolbar).
    • In the Format Picture dialog box, click on the Size tab and make the necessary changes from the options there.
    • Click OK to complete the changes.

Click the Stop button when you have finished recording.

07
of 08

Run the PowerPoint Macro

run the PowerPoint macro
Run the PowerPoint macro. © Wendy Russell

Now that you have completed the recording of the macro you can use it to perform this automated task. But first, make sure that you return the picture to its original state before you recorded the macro, or else simply move on to the second slide.

Steps to Run the Macro

  1. Click on the slide that requires the macro to be run.
  2. Choose Tools > Macro > Macros.... The Macro dialog box will open.
  3. Select the macro you wish to run from the list shown.
  4. Click on the Run button.

Repeat this process for each slide until you have resized them all.

08
of 08

The Completed Slide After Running the PowerPoint Macro

completed slide after running PowerPoint macro
Completed slide after running PowerPoint macro. © Wendy Russell

The new slide. The picture has been resized and centered on the slide after running the PowerPoint macro.

Please note that this task was simply a demonstration on how to create and run a macro in PowerPoint in order to automate a task.

Actually, it is a far better practice to resize your photos before inserting them into a PowerPoint slide. This reduces the file size and the presentation will run more smoothly. This tutorial, will show you how to do that.