View Single Post
 
Old 08-28-2018, 04:44 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your code is way over-done and, other than the 'type test', adds no functionality to what kilroy supplied! Indeed, it could even be reduced to:
Code:
Sub Brightness()
Dim iShp As InlineShape
For Each iShp In Selection.InlineShapes
  With iShp
    If .Type = wdInlineShapePicture Or wdInlineShapeLinkedPicture Then
      .PictureFormat.Brightness = 0.25
      .PictureFormat.Contrast = 0.98
    End If
  End With
Next
End Sub
Quote:
Originally Posted by staicumihai View Post
Do you know how ta make a macro that increases the brightness of a picture with 2 procent ?
The macro in the link I supplied in post #3 shows how to do that.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote