Results 1 to 6 of 6

Thread: set color saturation of image with vba

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,096
    Location
    Couldn't you toggle with

    [vba]Sub toggle()
    Dim oshp As Shape
    Set oshp = ActiveWorkbook.Worksheets(1).Shapes(1)
    With oshp.PictureFormat
    Select Case .ColorType
    Case Is = msoPictureGrayscale
    .ColorType = msoPictureAutomatic
    Case Is = msoPictureAutomatic
    .ColorType = msoPictureGrayscale
    End Select
    End With
    End Sub[/vba]

    OR to use saturation

    [VBA]With s.Fill.PictureEffects
    .Delete (1)
    .Insert(msoEffectSaturation).EffectParameters(1).Value = 0.5 'whatever
    End With[/VBA]
    Last edited by John Wilson; 05-22-2013 at 03:41 AM.
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •