none
Creating Pop-Up Macro in Powerpoint using VBA - Compile error at pop. RRS feed

  • Question

  • Getting a compile error: Expected: end of statement message at pop.Visible section of the code. This code is used to create a pop-up image in Powerpoint. I did not originally write this code so any help is appreciated.  Thanks Brian

    Type the following code to create a macro to show the object:

    Sub mcrPop() Set pop = ActivePresentation.Slides(7).Shapes("popup") pop.Visible = True End Sub

    "Replace "7" with the current slide's number.


    Type the following code to create a macro to hide the object:

    Sub mcrUnPop() Set pop = ActivePresentation.Slides(7).Shapes("popup") pop.Visible = False End Sub

    "Again, replace "7" with the current slide's number.

    Friday, January 8, 2016 11:04 PM

All replies