View Single Post
 
Old 11-09-2017, 09:30 AM
Mattia Mattia is offline Windows 8 Office 2016
Novice
 
Join Date: Nov 2017
Posts: 2
Mattia is on a distinguished road
Default Make a macro apply only on selected pictures

Hello everyone,

I am using a MACRO to resize all the pictures in my word document :


Code:
Sub Macro1()
For Each image In ActiveDocument.InlineShapes
image.Width = 115
Next
End Sub
The MACRO works pretty well but apply to my whole document and then to all the pictures.

I would like this MACRO to apply only on my selection (I select a part with text and pictures) and then to only change the size of the selected pictures.

I hope someone could help me with that

Thanks

See you
Reply With Quote