Avatar billede daki Juniormester
19. februar 2019 - 20:17 Der er 1 løsning

Afvikling af macro i PowerPoint

Har denne macro i en PowerPoint.
Hvordan får jeg den til at kører i loop indtil jeg lukker filen eller evt. en macro til at starte og stoppe den.
Så jeg har mulighed for at vise/skjule forskellige slides?
Hvordan får jeg den til at springe de slides over, som på tidspunktet for kørslen, er skjult?

Alternativt, kan jeg evt. lave macro i Excel og opdatere slides den vej?

Sub Update()
'  MsgBox "Slide Update start: " & Now
    ActivePresentation.Slides(2).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(3).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(4).Shapes("Object 2").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(4).Shapes("Object 3").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(5).Shapes("Object 2").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(5).Shapes("Object 3").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(6).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(7).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(7).Shapes("Object 2").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(8).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(9).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(10).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(10).Shapes("Object 2").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(11).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(12).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(13).Shapes("Object 2").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(14).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(15).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(15).Shapes("Object 2").LinkFormat.Update
    Call WaitFor(1)
    ActivePresentation.Slides(16).Shapes("Object 1").LinkFormat.Update
    Call WaitFor(1)
'  MsgBox "Slide Update end: " & Now
End Sub
Avatar billede daki Juniormester
02. februar 2020 - 15:45 #1
Lukker spørgsmål.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester