#1
|
|||
|
|||
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 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 |
#2
|
||||
|
||||
Try:
Code:
Sub Macro1() Dim Image As InlineShape For Each Image In Selection.InlineShapes Image.Width = 115 Next End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
It is working. Thank you
Hello,
Thank you very much Macropod, You saved my day, it is working perfectly. Have a great day Bye |
Tags |
macro help |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can i make excel retrieve selected text? | peterpiper | Excel | 1 | 07-11-2017 03:49 AM |
Macro to apply artistic effect to selected picture in Microsoft Word 2010. | staicumihai | Word VBA | 2 | 11-24-2016 01:41 AM |
How to make outlook rules apply to outbox folder? | 1466211 | Outlook | 0 | 04-19-2016 05:18 AM |
how do i apply any change to all pictures in one document | greenil | Word | 0 | 06-18-2013 12:56 AM |
Macro to apply style to selected tables | ubns | Word | 1 | 08-02-2012 04:09 AM |