Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Declare Sub Sleep Lib "kernel32" (ByVal lngMilliSeconds As Long)
- Public Sub WaitSeconds(intSeconds As Integer)
- Dim dTime As Date
- dTime = DateAdd("s", intSeconds, Now)
- Do
- Sleep 100
- DoEvents
- Loop Until Now >= dTime
- End Sub
- Sub KlicCopy()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- ActivePresentation.Slides(9).Shapes("Klic").TextFrame.TextRange.Copy
- End Sub
- Sub Zivot1()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- ActivePresentation.Slides(3).Shapes("CaraGong").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10
- End If
- End With
- End If
- End Sub
- Sub Zivot2()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- End Sub
- Sub Zivot3()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- End Sub
- Sub Zivot4()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- End Sub
- Sub Zivot5()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- End Sub
- Sub DruhaSance()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Zivot1")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Zivot1")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False
- Else
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole1")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole1")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole2")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole2")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole3")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole3")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole4")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole4")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole5")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole5")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole6")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole6")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole7")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole7")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole8")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole8")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole9")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole9")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole10")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole10")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole11")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole11")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole12")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole12")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole13")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole13")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole14")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole14")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole15")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole15")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole16")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole16")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole17")
- newRect.Fill.ForeColor.RGB = RGB(0, 255, 0)
- Set newRect = ActivePresentation.Slides(3).Shapes("Pole17")
- newRect.Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False
- End If
- End If
- With SlideShowWindows(1).View
- .GotoSlide 3, msoFalse
- End With
- End Sub
Add Comment
Please, Sign In to add comment