How to Hide a Shape in PowerPoint VBA

Visual Basic for Applications (VBA) is a programming language you can use to make small changes to some programs in Microsoft Windows. Using VBA in Microsoft PowerPoint will allow you to tweak the program to do things it normally won't do, including hiding a shape within a slide of the presentation. Before you can do this, you must enable the use of VBA, then copy and paste a simple code into the VBA editor built into Microsoft PowerPoint.

Instructions

    • 1

      Open PowerPoint as you normally would and open the presentation you want to make the shape disappear in. Click the "Office" button in the upper-left corner of the screen and click on "PowerPoint" options from the menu. Click on "Trust Center" that will appear on the left.

    • 2

      Wait for the "Trust Center" window to open. Click on the "Trust Center Settings" option on the right side of the window. Click on the "Macro Settings" option that will be on the left side of the box. A list of options will appear. Click on the button next to the "Disable All Macros With Notification" option. This will allow the program to run the macros you create using VBA. Close any open boxes to return to the main screen.

    • 3

      Press the "Alt" button and the "F11" button at the same time and the VBA editor will open. Enter in the code that you want to use for the Macro. Copy and paste the "Peekaboo" code into the editor.

    • 4

      Click the "Run" button and then click on the "Run Sub/User" option from the next screen to enable the code. Return to the presentation layout and go to the slide with the shape you wish to hide. Right-click on it and choose the "Actions" option and choose either "Mouse-over" or "Mouse-click." On the screen that appears, click the "Macros" option from the menu and select "Peekaboo."

    • 5

      Save the project then run the slideshow as normal. Now on the slide that you have the shape on, when you mouse-over or click the shape, it and any text in it will disappear. The shape will reappear when you move the mouse off the shape or click again.

Related Searches:

References

Resources

Comments

Related Ads

Featured