Picture this — you want to insert multiple images into your Word document. Initially, the pictures are of different sizes, but you want them to be the same size in your document. While one can get the help of suitable photo editing tools, sometimes, one does not have access to them. In such situations, you can use Microsoft Word itself to resize all the pictures.
There’s no denying the fact that Microsoft Word is amazing when it comes to writing. But if you dig deep into it, you will discover its hidden features related to other things, such as photo editing. For example, did you know that you can give your images a perfect circle directly in Word?
Similarly, you can create images of the same size in Word. Let’s see how to do that using the two methods mentioned below.
Method 1: Using Macros
Sometimes we wish we had a single button that pressing it would automatically perform a difficult task. That’s what macros do in Word.
Macros automate a certain task that would otherwise require you to perform the task multiple times. You can create a macro by recording the steps you want to take or writing a set of instructions.
Since we need to resize all the images in MS Word, we will resort to the help of Macros. We will create it by writing code to resize the image. Don’t be confused. Here are the detailed steps:
Step 1: Open the Word file in which you want to create all images of the same size.
Step 2: Click on the first image in the file to select. Then click the View tab at the top.
Step 3: Click Macros.
Step 4: A pop-up window will open. Enter a name in the box below the Macro name. You can name it anything. For ease of understanding, we will call it Resize.
Then click Create.
Step 5: A new Microsoft Visual Basic for Applications window will open. Select the existing code and delete it.
Step 6: Then copy and paste one of the following codes into the window.
Type A: Use following code if you want to change height and width in pixels. Replace 500 and 600 with your own values.
Resize Sub() Dim i As Long With ActiveDocument For i = 1 To .InlineShapes.Count With .InlineShapes(i).Height = 500 .Width = 600 End With Next i End With End Sub
Type B: Use this if you want to resize in inches. Replace 2 with your value.
Resize Sub() Dim i As Long With ActiveDocument For i = 1 To .InlineShapes.Count With .InlineShapes(i).Height = InchesToPoints(2) .Width = InchesToPoints(2) End With Next i End With End Sub
Type C: If you want to scale the image, the following code will help you. Replace 30 and 40 with your preferred values.
Sub resize() Dim i As Long With ActiveDocument For i = 1 To .InlineShapes.Count With .InlineShapes(i) .ScaleHeight = 30 .ScaleWidth = 40 End with Next i End with End Sub
Step 7: After copying, close the Microsoft Visual Basic for Applications window by clicking the cross icon.
Step 8: With the image selected, click Macro again in the View tab.
Step 9: Macro window will open. Click Run with your macro selected.
As soon as you press the Run button, you will notice the size will change for all images.
Method 2: Using the Magic Key
Did you know that you can repeat the most recently performed action on Microsoft Office applications just by clicking a button on the keyboard? That key is the F4 key on Windows and the Y key on Mac.
Tip:
Here are the steps for this method:
Step 1: Open the Word document that contains your image.
Step 2: Right click on the first image and select Size and Position.
Step 3: In the Layout box that opens, click the Size tab. Then uncheck the box next to Lock Aspect Ratio. Enter the required values for the height and width of the image in the given boxes. Click OK.
Step 4: You will notice the size will be changed for the selected image. Now, click on each of the other images and press the F4 key (or fn + F4 on Windows) or the Y key (on macOS) for each image. That will repeat the action done in step 3 — change the image’s height and width.
Note
Size is important
A well-organized document with properly sized images will look better than an unorganized document. While the methods above will allow you to perform the task of resizing all projected images, we wish there was an easy way. Until we get to that, you will have to rely on the two methods mentioned above. If you know another way, we’re always listening in the comments section below.
Next: Want to change the theme for Microsoft Office products? Learn how to change the theme and disable dark mode on Word, Excel and PowerPoint from the given link.
Categories: How to
Source: thpttranhungdao.edu.vn/en/