![]() |
|
#1
|
||||
|
||||
![]()
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 |
#2
|
|||
|
|||
![]()
Thanks, this code changes the formatting!
But not the correct way, I will skip changing the brightness and the contrast Last edited by Charles Kenyon; 01-10-2020 at 12:01 PM. |
![]() |
Tags |
format tab, macro recorder |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
cheech1981 | Word VBA | 4 | 11-29-2018 09:25 PM |
Macro recorder changing reference style for columns in pivot source | andylaw31 | Excel Programming | 0 | 06-15-2016 08:45 AM |
![]() |
Jennifer Murphy | Word VBA | 1 | 11-04-2012 01:55 AM |
![]() |
ralphpickering | Word VBA | 5 | 10-24-2012 10:15 AM |
![]() |
Ulodesk | Word VBA | 6 | 07-02-2012 09:23 AM |