Table of Contents
Steps Involved in Macro Creation
Home Common Problem How to Create a Macro in Powerpoint Step by Step

How to Create a Macro in Powerpoint Step by Step

May 13, 2023 pm 02:13 PM
powerpoint

A macro is simply a set of instructions written by the user and saved under the macro name. When a macro name is called in a presentation, it automatically executes the set of instructions defined under the macro name. Macros are embedded into PowerPoint presentations when needed. You can use VBA to code macros in PowerPoint. It helps us create our own designs and reuse them. Macros can also be created in other Microsoft Office applications. Let’s see how to create a simple macro in PowerPoint

Steps Involved in Macro Creation

Step 1. Open PowerPoint. Type PowerPoint in the search space in the lower left corner. You can open PowerPoint with just one click.

如何在 Powerpoint 中逐步创建宏

Step 2. Double-click PowerPoint. After opening click on File

如何在 Powerpoint 中逐步创建宏

Step 3: Search for Options and click on it

如何在 Powerpoint 中逐步创建宏

Step 4: Click Customize Ribbon. On the right side of the window, customize the ribbon bar and drag down to select Developer. Press OK to complete the process.

如何在 Powerpoint 中逐步创建宏

Step 5: Now you can see the Developer tab next to the View tab. Click on the Developer tab and go to Macro Security

如何在 Powerpoint 中逐步创建宏

Step 6: Once you click on Macro Security, a trust will open center screen. Locate the Macro

settings where you need to enable all macros and check the box for Trust access to the VBA Project Object Model in Developer Macro Settings .

Once all of this is done. Click "

OK" to continue with the next process.

如何在 Powerpoint 中逐步创建宏

Step 7: After the initial setup process,

macros can be created in the project window by clicking Macro.

如何在 Powerpoint 中逐步创建宏

Step 8: A pop-up screen will appear where you can create the macro. Type

Macro Name as needed and click Create. The macro name here is HI in Presentation1.

如何在 Powerpoint 中逐步创建宏

Step 9: A Microsoft VB application window will open in which you should write a set of instructions that will be used when the macro is called from the presentation Executed sequentially.

如何在 Powerpoint 中逐步创建宏

In this Module1 (Code) Screen, you can write the code to be executed. I just wrote a

MsgBox("Good Day!!!"). This means MsgBox is a predefined function which will display what is written inside the brackets. In the previous line, the macro name is HI. So whatever you write in that macro HI, it will be executed sequentially when called.

Step 10: After writing the code in the macro, you should close the window and return to Presentation 1. Go to

Macro and click on the name(HI) of the macro and press the Run command which will execute the code.

如何在 Powerpoint 中逐步创建宏

Step 11: When you click Run, you can see the message "Good day!!!" displayed in the message box of Presentation1.

如何在 Powerpoint 中逐步创建宏

Step 12: Successfully create the macro and test it. It's time to add it to the screen so that all code can be executed with a single click. To do this, go to the

Filetab and click on the Options

Scan

Quick Access Toolbar . When you select Can see the custom Quick Access Toolbar, drag down and select Macros.

如何在 Powerpoint 中逐步创建宏

Step 13: All created macros will be listed. You need to choose what you want to add.

Presentation1 HI is selected here because it is the one we created. Click to add. Now the macro HI has been added to the custom Quick Access Toolbar.

如何在 Powerpoint 中逐步创建宏

Step 14: You can modify the macro with icon and name as shown below.

如何在 Powerpoint 中逐步创建宏

Step 15: After clicking the Modify button, you can select the icon from the predefined collection and can change the name as shown in the image below.

如何在 Powerpoint 中逐步创建宏

Step 16: Select the icon and enter the name and click OK. Now you can see the added icon and name in the toolbar

如何在 Powerpoint 中逐步创建宏

Step 17: Go to the home page and you can see the custom icon on top of the presentation . When you want to call a macro, just click on the icon at the top. The macro will run automatically and display the results.

如何在 Powerpoint 中逐步创建宏

Macros are especially used in scenarios where repeated command sequences are required. It could be your custom design or using VBA to code a calculation such as addition in a pre-made way.

The above is the detailed content of How to Create a Macro in Powerpoint Step by Step. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to blur an image in PowerPoint How to blur an image in PowerPoint Apr 14, 2023 pm 12:13 PM

How to Blur Part of an Image in PowerPoint There is no official tool that allows you to blur part of an image in a PowerPoint presentation. Instead, you do this using a combination of shapes and other features. To blur part of an image in PowerPoint: Open your PowerPoint presentation. Press Insert > Shape and choose a suitable shape to cover your image. Draw the image onto the slide and position it over the area of ​​the image you want to blur. If you want to design a custom shape

How to highlight text in PowerPoint How to highlight text in PowerPoint Apr 19, 2023 pm 12:04 PM

How to Highlight Text in PowerPoint 2019 or 365 If you are using PowerPoint 2019 or have a Microsoft 365 subscription, highlighting text is quick and easy. There are two main ways to highlight text in PowerPoint. How to Highlight Selected Text in PowerPoint The first way is to select the text you want to highlight before applying the effect. To highlight selected text in PowerPoint: Click and drag the text you want to highlight. In the Home tab, click the down arrow next to the Text Highlight Color tool. Click on the highlight color of your choice

How to Create a Macro in Powerpoint Step by Step How to Create a Macro in Powerpoint Step by Step May 13, 2023 pm 02:13 PM

A macro is simply a set of instructions written by the user and saved under the macro name. When a macro name is called in a presentation, it automatically executes the set of instructions defined under the macro name. Macros are embedded into PowerPoint presentations when needed. Macro code can be written in PowerPoint using VBA. It helps us create our own designs and reuse them. Macros can also be created in other Microsoft Office applications. Let’s see how to create a simple macro in PowerPoint. Steps involved in macro creation are Step 1. Open PowerPoint. Type PowerPoint in the search space in the lower left corner. You can open Po with just one click

How to blur part of an image in PowerPoint application How to blur part of an image in PowerPoint application Apr 14, 2023 pm 07:19 PM

When giving a presentation using the best PowerPoint app ever, adding images relevant to your presentation makes it easier for your audience to understand the topic and content, not just the text or paragraphs. Sometimes there is something very sensitive in the image that is not considered safe to show to viewers. Therefore, it is standard practice to blur specific parts of an image. However, blurring a part of an image in PowerPoint application is not easily done by any direct method. In this post, we have shown a simple method by which you can blur any specific part of an image in PowerPoint application using a few steps given below. How to blur images in PowerPoint application

What are the main functions of powerpoint What are the main functions of powerpoint Sep 14, 2022 pm 03:54 PM

The main function of powerpoint is to create presentations; users can also make presentations on a projector or computer, or print out presentations. PPT is suitable for work reports, corporate publicity, product promotions, wedding celebrations, project bidding, management consulting, Education and training and other fields, and has functions such as photo album production, document merging, application masterboard, picture movement, animation control, etc.

How to insert an image into a shape in PowerPoint How to insert an image into a shape in PowerPoint Apr 17, 2023 pm 02:28 PM

How to Insert an Image into a Shape in PowerPoint Inserting an image into a shape is useful for creating visual elements that stand out in your presentation. It could be an arrow, a heart, or a cross, but each of these shapes provides a purpose or emotion that can help your image pack a punch. If you're not sure how to insert an image into a shape in PowerPoint, follow these steps: Open your PowerPoint presentation. Click the Insert tab in the ribbon. Click the shape. Select the desired shape and draw it on the slide. Next, select the shape you drew and select the Format Shape tab on the ribbon bar. Click the shape fill. Fill dropdown menu from shape

What is included in the fill effect option for setting the slide background in powerpoint What is included in the fill effect option for setting the slide background in powerpoint Jul 27, 2021 pm 02:04 PM

The fill effect options for setting the slide background in PowerPoint include gradients, textures, patterns and pictures. The method to set the slide background is to select "Format Background" or click the "Design" tab to set the background.

What kind of software is PowerPoint? What kind of software is PowerPoint? Dec 10, 2020 pm 03:23 PM

PowerPoint is a "presentation" software. PowerPoint refers to Microsoft's presentation software. Users can present on a projector or computer, or they can print out the presentation and make it into film for application in a wider range of fields.