Solved

How to scale all images in a Word document

Posted on 2009-03-29
2
1,234 Views
Last Modified: 2012-05-06
I need a macro that will scale all images in a document to 100% height x 100% width.  Not sure how to do this.
0
Comment
Question by:swexler100
2 Comments
 
LVL 4

Accepted Solution

by:
RapidDelp earned 125 total points
ID: 24016936
For word 2003, as long as the image can be scaled, this will do it.
Sub macro2()

    Dim s As InlineShape

    Dim d As Document

    

    Set d = Application.ActiveDocument

    

    For Each s In d.InlineShapes

        Select Case s.Type

            Case wdInlineShapeLinkedPicture, _

                wdInlineShapePicture

                s.ScaleHeight = 100

                s.ScaleWidth = 100

            Case Else

                ' s.Type

        End Select

    Next

    

End Sub

Open in new window

0
 

Author Closing Comment

by:swexler100
ID: 31564156
Terrific.  This works great.  Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is often necessary in this forum and others to illustrate Word fields as text with the field delimiters replaced with the curly brackets that the delimiters resemble when field codes are being displayed on the document. This means that the text c…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now