Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8490495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:08:18+00:00 2026-06-10T22:08:18+00:00

I get word 2010 documents containing images. Now for some reason these images are

  • 0

I get word 2010 documents containing images. Now for some reason these images are scaled to 133%.

Now I’m looking for a way to iterate through all images in the document and scale them to 100%. I found this script, but it does not work (and I got no clue about word macros, so I don’t know why):

Sub AllGraphicsTo100() 

  Dim ILS As Word.InlineShape 
  Dim SHP As Word.Shape 

  For Each ILS In ActiveDocument.InlineShapes 
    If ILS.Type = wdInlineShapePicture Then 
        ILS.ScaleHeight = 100 
        ILS.ScaleWidth = 100 
    End If 
  Next ILS 

  For Each SHP In ActiveDocument.Shapes 
    If SHP.Type = msoPicture Then 
        SHP.ScaleHeight 1#, True 
        SHP.ScaleWidth 1, True 
    End If 
  Next SHP 

End Sub

Additionally if the images are wider than the column I’d like to scale them to fit the width of the column instead of 100%.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:08:20+00:00Added an answer on June 10, 2026 at 10:08 pm

    It is possible that your images are linked, rather than embedded. You can modify the macro to include linked images as well like this:

        Sub AllGraphicsTo100()
    
          Dim ILS As Word.InlineShape
          Dim SHP As Word.Shape
    
          For Each ILS In ActiveDocument.InlineShapes
            If ILS.Type = wdInlineShapePicture Or ILS.Type = wdInlineShapeLinkedPicture Then
                ILS.ScaleHeight = 100
                ILS.ScaleWidth = 100
            End If
          Next ILS
    
          For Each SHP In ActiveDocument.Shapes
            If SHP.Type = msoPicture Or SHP.Type = msoLinkedPicture Then
                SHP.ScaleHeight 1#, True
                SHP.ScaleWidth 1, True
            End If
          Next SHP
    
        End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my Q is there any way to get the word count or the content
What would be the appropriate regex to get the last word in these sentences:
for some reason I can't get the information out of a returned jsonp string,
I know that I can get word completion through CTRL+N & CTRL+P and code
How do I get the word settings like AutoRecover file location, AutoRecover time etc
I can get the word under the cursor with or , and I can
I have a string pc1|pc2|pc3| I want to get each word on different line
I'm writing a Vim script. How can I get the word under the cursor
Need to get the 10 word before and 10 words after for the given
I am trying to get the first word in the line that matches the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.