macro to sharpen all images in word

Discussion in 'Software' started by garyofcourse, Aug 1, 2011.

  1. garyofcourse

    garyofcourse Private E-2

    Hi, I have a 500+ page document with a lot of images. I need to convert all of these to grayscale and to increase sharpness by 40%. Both of these tasks can be done by right clicking each image and choosing 'format picture'. However because there are so many images I wish to use a macro. I am using word 2010.

    I am able to convert all images to grayscale. However I am not able to sharpen them since I do not know the required command/keyword. The macro recorder does not record anything you do int the 'format picture' dialog box so it is of no help. Do any of you know the command?

    Here is my working code so far that converts all images to grayscale.


    Sub Macro1()
    '
    ' Macro1 Macro
    '
    '
    Dim Pic As InlineShape
    For Each Pic In ActiveDocument.InlineShapes
    Pic.PictureFormat.ColorType = msoPictureGrayscale
    Next
    End Sub

    Thanks for any help you can give.

    Gary
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds