TUTORIALS
WEB DEV (BACK-END)
PHP SQL MYSQL PYTHON OTHERS
OTHERS
WORDPRESS GIT SEO
PowerPoint - Macro

Macro

In this tutorial, I will be showing you how to create a Macro in PowerPoint.

definition
DEFINITION:

Macro is the combination instructions and commands to form a single command that is used to automatically complete an operation or task in PowerPoint by a single click

  • MACRO
  • Step 1 - We are going to be creating a macro that one click on a button, displays Hello World! First open your PowerPoint presentation slide. Click on the View tab and go to the Macros group and click on the only command on that group which is the Macros.
  • macro
  • Step 2 - From the macros dialog box displayed, type in the name of the macros, inside the input field below the heading Macros Name. After that move downwards where you have options to select whether you want the macros to be only on that presentation or every presentation that is currently opened. You can also add description later on. Once you are done, click on the Create button.
  • macro
  • Step 3 - The Microsoft Visual Basic Application will be opened. This is where you can code in what you want your macros to do. In our case, we want our macros to display a message: Hello World. In between the Sub and End Sub kindly type in the code: MsgBox ("Hello World").
  • macro
  • Step 4 - Now Press F5 to run the macros or go to the menu tab, click on the Run tab, from the dropdown list of options click on Run Sub/UserForm F5. The Macros dialog box will be displayed again, click on the Run button.
  • macro
    macro
  • Step 5 - Hello World displayed successfully. Now click on OK, close the Microsoft Visual Basic Application.
  • macro
  • Step 6 - Now let's create a quick access tool button that we can click to display this message ASAP! Click on the File Tab.
  • macro
  • Step 7 - Click Options. If you are using higher version of PowerPoint. Click More, then click Options.
  • macro
  • Step 8 - From the PowerPoint Options windows, click on Quick Access Toolbar on the first column. Move to the second column, from the select Macros from the Choose commands from selection menu as shown in the image below.
  • macro
  • Step 9 - Click on the Macro name, then click on the Add button. In the Last Column, click on the Modify button below. From the Modify Button dialog box, you can select the symbol you want to use here. You also have option to change the name of the macros if need be. After you are done, click on the OK button.
  • macro
    macro
  • Step 10 - In the PowerPoint Options windows, click on OK button too.
  • macro
  • Step 11 - Now your macros button is now successfully added to your quick access toolbar. On click on that button will run your macros immediately.
  • macro
    macro
  • OTHER MACROS OPTIONS IN THE DIALOG BOX - Click on the View tab and go to the Macros group and click on the only command on that group which is the Macros.
  • macro
  • STEP INTO & EDIT - The Step Into and Edit button in the Macros dialog box are both use to edit your macros code.
  • macro
  • DELETE - The Delete button is used to delete the selected macros
  • macro
  • RUN - The Run button is run the selected macros
  • macro
note
NOTE:

You can also put description in a macro after you have created it, not during creation of the macros.
Macros name must either start with underscore or a letter.
Microsoft Visual Basic is Microsoft programming language that is used in Microsoft applications.

tips
TIP:

You can create macros that will perform tasks, customize objects, etc if you are very good in Microsoft Visual Basic. What I gave you in this tutorial is one of the simplest macro that you can create. They are more complex ones you can do, such as creating a calculator using macros and so on.

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT