Consulting

Results 1 to 13 of 13

Thread: how to make a toggle button that light up

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Regular
    Joined
    Oct 2017
    Posts
    11
    Location

    how to make a toggle button that light up

    Hi All
    I need to make a toggle button that light up when pushed. I could come up with this code, but it seems taken up much resources on my computer.
    I need some help with a smarter and better way to structure the code.
    I have tried with the "Selection with", but then I can not make the "action" work, when assigning the macro.

    This is the code I am using:
    ---
    Sub firepump1_Click()
    If ActivePresentation.Slides(1).Shapes("firepump1").Fill.ForeColor.RGB = RGB(0, 125, 0) Then
    
    
    ActivePresentation.Slides(1).Shapes("firepump1").Fill.ForeColor.RGB = RGB(102, 255, 51)
    ActivePresentation.Slides(1).Shapes("firepump1").ThreeD.BevelTopType = msoBevelSoftRound
    ActivePresentation.Slides(1).Shapes("firepump1").Glow.Color.RGB = RGB(153, 255, 51)
    ActivePresentation.Slides(1).Shapes("firepump1").Glow.Transparency = 0.6000000238
    ActivePresentation.Slides(1).Shapes("firepump1").Glow.Radius = 18
    Else
    ActivePresentation.Slides(1).Shapes("firepump1").Fill.ForeColor.RGB = RGB(0, 125, 0)
    ActivePresentation.Slides(1).Shapes("firepump1").ThreeD.BevelTopType = msoBevelCircle
    ActivePresentation.Slides(1).Shapes("firepump1").Glow.Radius = 0
    End If
    End Sub
    ---
    Hope anyone have a fix solution.
    PPT 2016
    Last edited by Paul_Hossler; 10-15-2017 at 07:46 AM. Reason: Added CODE tags - use the [#] icon

Posting Permissions

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