View Single Post
 
Old 01-05-2020, 06:29 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Maybe something like

Code:
Sub Macro1()

Dim oShape As Shape
Dim oIlshape As InlineShape
    If Selection.InlineShapes.Count = 0 Then
        If Selection.ShapeRange.Count = 1 Then
            Set oShape = Selection.ShapeRange(1)
            With oShape.PictureFormat
                .ColorType = msoPictureBlackAndWhite
                .Brightness = 0.1
                .Contrast = 0.75
            End With
        Else
            MsgBox "No shape selected"
        End If
    Else
        Set oIlshape = Selection.InlineShapes(1)
        With oIlshape.PictureFormat
            .ColorType = msoPictureBlackAndWhite
            .Brightness = 0.1
            .Contrast = 0.75
        End With
    End If
    Set oShape = Nothing
    Set oIlshape = Nothing
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote