custom size image in Microsoft Word
How To

How to format the custom size image in Microsoft Word

Spread the love

Here let’s discuss the process to make a custom size image in Microsoft word so that you can do it in efficient and smart way.

In Microsoft Word if you need to add more images and it takes more time to format images so the solution is you need to create a macro and your in just type two key you setup the required size image in word

Just follow below step to add Macro in Microsoft word.

First Open the Microsoft Word then go to View tab and select Macro as below snap.

It open Macro tab in macro add any name in Macro name then tab clicked on Create and

Best free Anti-Virus Software to secure your computer

Select the all code in macro and delete the all cod and paste the below code and save the same .

Sub Macro()

‘ Macro Macro


Dim shp As Word.Shape
Dim ishp As Word.InlineShape
If Word.Selection.Type <> wdSelectionInlineShape And _
Word.Selection.Type <> wdSelctionShape Then
Exit Sub
End If
If Word.Selection.Type = wdSelectionInlineShape Then
Set ishp = Word.Selection.Range.InlineShapes(1)
ishp.LockAspectRatio = Fales
ishp.Height = InchesToPoints(4.16) ‘You can as pre your requirement
ishp.Width = InchesToPoints(9.6) ‘You can as pre your requirement
Else
If Word.Selection.Type = wdSelectionInlineShape Then
Set shp = Word.Selection.Range.InlineShapes(1)
shp.LockAspectRatio = Fales
shp.Height = InchesToPoints(4.16)  ‘You can as pre your requirement
shp.Width = InchesToPoints(9.6) ‘You can as pre your requirement
End If
End If
End Sub

Now Your Macro set now you have to assign Shortcut Key to this macro for quick format images.

Go to File–>Option–>Customized Ribbon and clicked on Customized as per below snap.

scroll down in Categories and you can see the Macro and select the same by select in macro another macro display clicked on it and in “Press new shortcut key” text box assign the required shortcut key i have assign the Ctrl+Space and clicked on Assign tab then close the tab now you can format the image by just taping Ctrl+Space.

Factors To Be Considered While Choosing a Reliable Web Host

3 Best ways to speed up WordPress Website

How to do digital marketing course | best way to learn about it

One thought on “How to format the custom size image in Microsoft Word

Leave a Reply

Your email address will not be published.