• About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy Policy
  • Change the purpose of use

Tnhelearning.edu.vn - Various useful general information portal

  • Photo
  • Bio
  • How To
  • Tech

How to Write a Simple Macro in Microsoft Excel

February 19, 2024 by admin Category: How To

You are viewing the article How to Write a Simple Macro in Microsoft Excel  at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.

X

This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

This article has been viewed 16,649 times.

In this article, the wikiHow will show you how to create simple macros for Excel pages.

Table of Contents

  • Steps
    • Enable Macros
    • Macro Recording
    • Using macros

Steps

Enable Macros

Image titled Write a Simple Macro in Microsoft Excel Step 1

Image titled Write a Simple Macro in Microsoft Excel Step 1

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/b5/Write-a-Simple-Macro-in-Microsoft-Excel-Step-1-Version-2.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-1-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/b5/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-1-Version-2.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-1-Version-2. jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight”:547,”licensing”:”<div class=”mw-parser-output”></div>”}
Open Excel. The steps are the same for Excel 2010, 2013 and 2016 and differ only slightly for Excel for Mac: this difference is detailed below.
Image titled Write a Simple Macro in Microsoft Excel Step 2

Image titled Write a Simple Macro in Microsoft Excel Step 2

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/b3/Write-a-Simple-Macro-in-Microsoft-Excel-Step-2-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-2-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/b3/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-2-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-2-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Click the File tab.

  • With Excel for Mac, click the “Excel” menu.
Image titled Write a Simple Macro in Microsoft Excel Step 3

Image titled Write a Simple Macro in Microsoft Excel Step 3

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/be/Write-a-Simple-Macro-in-Microsoft-Excel-Step-3-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-3-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/be/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-3-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-3-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Click Options .

  • With Excel for Mac, click and the “Preferences” menu.
Image titled Write a Simple Macro in Microsoft Excel Step 4

Image titled Write a Simple Macro in Microsoft Excel Step 4

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/b9/Write-a-Simple-Macro-in-Microsoft-Excel-Step-4-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-4-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/b9/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-4-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-4-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Go to the Customize Ribbon option.

  • With Excel for Mac, click “Ribbon & Topbar” in the “Authoring” section.
Image titled Write a Simple Macro in Microsoft Excel Step 5

Image titled Write a Simple Macro in Microsoft Excel Step 5

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/f/f1/Write-a-Simple-Macro-in-Microsoft-Excel-Step-5-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-5-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/f/f1/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-5-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-5-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Select the Developer box in the list on the right.

  • With Excel for Mac, the “Developer” entry is in the “Tab or Group Title” list.
Image titled Write a Simple Macro in Microsoft Excel Step 6

Image titled Write a Simple Macro in Microsoft Excel Step 6

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/0/02/Write-a-Simple-Macro-in-Microsoft-Excel-Step-6-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-6-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/0/02/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-6-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-6-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Select OK . The Developer tab will appear at the bottom of your tag list.

Macro Recording

Image titled Write a Simple Macro in Microsoft Excel Step 7

READ More:   How to Dress Well for a Party

Image titled Write a Simple Macro in Microsoft Excel Step 7

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/b/b6/Write-a-Simple-Macro-in-Microsoft-Excel-Step-7-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-7-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/b/b6/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-7-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-7-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Practice with the sequence of actions in your macro. When recording a macro, your every action or any click will be recorded. Therefore, just one mistake is enough for everything to go in vain. Work a few times with the commands that you will record so that when you do, you can execute them decisively and accurately.
Image titled Write a Simple Macro in Microsoft Excel Step 8

Image titled Write a Simple Macro in Microsoft Excel Step 8

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/c/c8/Write-a-Simple-Macro-in-Microsoft-Excel-Step-8-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-8-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/c/c8/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-8-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-8-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Open the Developer tab.
Image titled Write a Simple Macro in Microsoft Excel Step 9

Image titled Write a Simple Macro in Microsoft Excel Step 9

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/9/92/Write-a-Simple-Macro-in-Microsoft-Excel-Step-9-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-9-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/9/92/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-9-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-9-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Click Record Macro . This option is located in the Code section of the ribbon. You can also use Alt + T + M + R to start a new macro (Windows only).
Image titled Write a Simple Macro in Microsoft Excel Step 10

Image titled Write a Simple Macro in Microsoft Excel Step 10

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/9/96/Write-a-Simple-Macro-in-Microsoft-Excel-Step-10-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-10-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/9/96/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-10-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-10-Version-3. jpg”,”smallWidth”:460,”smallHeight”:349,”bigWidth”:728,”bigHeight”:552,”licensing”:”<div class=”mw-parser-output”></div>”}
Name the macro. It is recommended to use a recognizable name, especially if you need to create a lot of macros.

  • You can also add a description to explain the function of the macro.
Image titled Write a Simple Macro in Microsoft Excel Step 11

Image titled Write a Simple Macro in Microsoft Excel Step 11

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/16/Write-a-Simple-Macro-in-Microsoft-Excel-Step-11-Version-2.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-11-Version-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/1/16/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-11-Version-2.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-11-Version-2. jpg”,”smallWidth”:460,”smallHeight”:349,”bigWidth”:728,”bigHeight”:552,”licensing”:”<div class=”mw-parser-output”></div>”}
Click the Shortcut key field. You can assign keyboard shortcuts to macros for easier operation. Note that this is not a required step.
Image titled Write a Simple Macro in Microsoft Excel Step 12

Image titled Write a Simple Macro in Microsoft Excel Step 12

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/14/Write-a-Simple-Macro-in-Microsoft-Excel-Step-12-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-12-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/1/14/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-12-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-12-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Press ⇧ Shift with the same letter. Ctrl + ⇧ Shift + the letter used to start the macro will be initialized.

  • On a Mac, that would be ⌥ Opt + ⌘ Command + letter.
Image titled Write a Simple Macro in Microsoft Excel Step 13

Image titled Write a Simple Macro in Microsoft Excel Step 13

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/3/33/Write-a-Simple-Macro-in-Microsoft-Excel-Step-13-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-13-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/3/33/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-13-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-13-Version-3. jpg”,”smallWidth”:460,”smallHeight”:348,”bigWidth”:728,”bigHeight”:551,”licensing”:”<div class=”mw-parser-output”></div>”}
Click the Store macro in menu.
Image titled Write a Simple Macro in Microsoft Excel Step 14

Image titled Write a Simple Macro in Microsoft Excel Step 14

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/3/3e/Write-a-Simple-Macro-in-Microsoft-Excel-Step-14-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-14-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/3/3e/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-14-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-14-Version-3. jpg”,”smallWidth”:460,”smallHeight”:347,”bigWidth”:728,”bigHeight”:549,”licensing”:”<div class=”mw-parser-output”></div>”}
Click the location where you want to save the macro. If you’re only using the macro for the current sheet, just leave it at “This Workbook”. If you want to use macros for any worksheet, select “Personal Macro Workbook”.
Image titled Write a Simple Macro in Microsoft Excel Step 15

Image titled Write a Simple Macro in Microsoft Excel Step 15

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/0/01/Write-a-Simple-Macro-in-Microsoft-Excel-Step-15-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-15-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/0/01/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-15-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-15-Version-3. jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:545,”licensing”:”<div class=”mw-parser-output”></div>”}
Click OK . Your macro will begin to be recorded.
Image titled Write a Simple Macro in Microsoft Excel Step 16

READ More:   How to Create a Skype Account

Image titled Write a Simple Macro in Microsoft Excel Step 16

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/8/87/Write-a-Simple-Macro-in-Microsoft-Excel-Step-16-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-16-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/8/87/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-16-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-16-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Manipulate the commands that you want to record. Almost now, all your actions will be recorded and added to the macro. For example, in C7, if you run the formula to calculate the sum of A2 and B2, later, when running the macro, the sum of A2 and B2 will always be calculated and displayed at C7.

  • Macros can become very complex. You can even use them to open other Office programs. When recording a macro, almost everything you do in Excel is added to it.
Image titled Write a Simple Macro in Microsoft Excel Step 17

Image titled Write a Simple Macro in Microsoft Excel Step 17

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/7/7b/Write-a-Simple-Macro-in-Microsoft-Excel-Step-17-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-17-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/7/7b/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-17-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-17-Version-3. jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Press Stop Recording when finished. Macro recording will be stopped and your macro will be saved.
Image titled Write a Simple Macro in Microsoft Excel Step 18

Image titled Write a Simple Macro in Microsoft Excel Step 18

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/6/66/Write-a-Simple-Macro-in-Microsoft-Excel-Step-18-Version-3.jpg/v4- 728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-18-Version-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/6/66/ Write-a-Simple-Macro-in-Microsoft-Excel-Step-18-Version-3.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-18-Version-3. jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight”:544,”licensing”:”<div class=”mw-parser-output”></div>”}
Save the file in the available macro format. To preserve macros, you need to save the workbook in a special Excel format that allows the use of macros:

  • Click the File menu and choose Save.
  • Click the File Type menu below the name field.
  • Click Excel Macro-Enabled Workbook.

Using macros

Image titled Write a Simple Macro in Microsoft Excel Step 19

Image titled Write a Simple Macro in Microsoft Excel Step 19

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/2/2c/Write-a-Simple-Macro-in-Microsoft-Excel-Step-19.jpg/v4-728px-Write- a-Simple-Macro-in-Microsoft-Excel-Step-19.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/2/2c/Write-a-Simple-Macro- in-Microsoft-Excel-Step-19.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-19.jpg”,”smallWidth”:460,”smallHeight”:345,” bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Open your macro-enabled Excel file. If you close the file before running the macro, you will be asked to enable its contents.
Image titled Write a Simple Macro in Microsoft Excel Step 20

Image titled Write a Simple Macro in Microsoft Excel Step 20

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/a/a8/Write-a-Simple-Macro-in-Microsoft-Excel-Step-20.jpg/v4-728px-Write- a-Simple-Macro-in-Microsoft-Excel-Step-20.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/a/a8/Write-a-Simple-Macro- in-Microsoft-Excel-Step-20.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-20.jpg”,”smallWidth”:460,”smallHeight”:345,” bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Click on the Enable Content option. Every time an Excel file that allows the use of macros is opened, this option is located at the top of the worksheet, on the Security Warning bar. Since this is your file, you can rest assured with it. However, be very careful when opening macro-enabled files from any other source.
Image titled Write a Simple Macro in Microsoft Excel Step 21

READ More:   How to Recall Emails on Gmail

Image titled Write a Simple Macro in Microsoft Excel Step 21

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/c/ce/Write-a-Simple-Macro-in-Microsoft-Excel-Step-21.jpg/v4-728px-Write- a-Simple-Macro-in-Microsoft-Excel-Step-21.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/c/ce/Write-a-Simple-Macro- in-Microsoft-Excel-Step-21.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-21.jpg”,”smallWidth”:460,”smallHeight”:345,” bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Click your macro shortcut. When you want to use a macro, you can quickly run it by pressing the shortcut you created for it.
Image titled Write a Simple Macro in Microsoft Excel Step 22

Image titled Write a Simple Macro in Microsoft Excel Step 22

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/c/c6/Write-a-Simple-Macro-in-Microsoft-Excel-Step-22.jpg/v4-728px-Write- a-Simple-Macro-in-Microsoft-Excel-Step-22.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/c/c6/Write-a-Simple-Macro- in-Microsoft-Excel-Step-22.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-22.jpg”,”smallWidth”:460,”smallHeight”:345,” bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
Click the Macros button on the Developer tab. All macros available on your current worksheet will be displayed.
Image titled Write a Simple Macro in Microsoft Excel Step 23

Image titled Write a Simple Macro in Microsoft Excel Step 23

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/f/f4/Write-a-Simple-Macro-in-Microsoft-Excel-Step-23.jpg/v4-728px-Write- a-Simple-Macro-in-Microsoft-Excel-Step-23.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/f/f4/Write-a-Simple-Macro- in-Microsoft-Excel-Step-23.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-23.jpg”,”smallWidth”:460,”smallHeight”:344,” bigWidth”:728,”bigHeight”:545,”licensing”:”<div class=”mw-parser-output”></div>”}
Click the macro that you want to run.
Image titled Write a Simple Macro in Microsoft Excel Step 24

Image titled Write a Simple Macro in Microsoft Excel Step 24

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/4/45/Write-a-Simple-Macro-in-Microsoft-Excel-Step-24.jpg/v4-728px-Write- a-Simple-Macro-in-Microsoft-Excel-Step-24.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/4/45/Write-a-Simple-Macro- in-Microsoft-Excel-Step-24.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-24.jpg”,”smallWidth”:460,”smallHeight”:344,” bigWidth”:728,”bigHeight”:545,”licensing”:”<div class=”mw-parser-output”></div>”}
Press the Run button. The macro will run on the current cell or selected cells.
  • Image titled Write a Simple Macro in Microsoft Excel Step 25

    Image titled Write a Simple Macro in Microsoft Excel Step 25

    {“smallUrl”:”https://www.wikihow.com/images_en/thumb/d/d1/Write-a-Simple-Macro-in-Microsoft-Excel-Step-25.jpg/v4-728px-Write- a-Simple-Macro-in-Microsoft-Excel-Step-25.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/d/d1/Write-a-Simple-Macro- in-Microsoft-Excel-Step-25.jpg/v4-728px-Write-a-Simple-Macro-in-Microsoft-Excel-Step-25.jpg”,”smallWidth”:460,”smallHeight”:345,” bigWidth”:728,”bigHeight”:546,”licensing”:”<div class=”mw-parser-output”></div>”}
    View the code of a macro. If you want to learn more about how macro codes work, you can open the code of any macro you’ve created and tinker with it:

    • Click the Macros button on the Developer tab.
    • Click the macro you want to view.
    • Click the Edit button.
    • View the macro code in the Visual Basic code editor window.
  • X

    This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

    The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

    This article has been viewed 16,649 times.

    In this article, the wikiHow will show you how to create simple macros for Excel pages.

    Thank you for reading this post How to Write a Simple Macro in Microsoft Excel at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.

    Related Search:

    Related Posts

    How to Create Curved Text in Photoshop
    How to fall asleep faster
    How to Install FBReader to Read eBooks

    Category: How To

    Previous Post: « How to Maintain Pool Water
    Next Post: How to Unlock Baby Luigi in Mario Kart Wii »

    Copyright © 2025 · Tnhelearning.edu.vn - Useful Knowledge