banner



How To Create A Macro In Windows 8

If you lot take tasks in Microsoft Excel that you do repeatedly, yous tin tape a macro to automate those tasks. A macro is an action or a set of actions that you can run as many times as y'all desire. When you create a macro, you are recording your mouse clicks and keystrokes. Later you create a macro, you can edit it to make minor changes to the fashion it works.

Suppose that every month, you create a written report for your accounting director. You want to format the names of the customers with overdue accounts in crimson, and as well employ bold formatting. You can create and so run a macro that quickly applies these formatting changes to the cells you select.

How?

Icon image

Before you record a macro

Macros and VBA tools tin be constitute on the Programmer tab, which is subconscious by default, then the first stride is to enable it. For more information, see Bear witness the Developer tab.

Developer tab on the ribbon

Icon image

Record a macro

  1. In the Code group on the Developer tab, click Record Macro.

  2. Optionally, enter a name for the macro in the Macro proper name box, enter a shortcut key in the Shortcut key box, and a description in the Description box, then click OK to start recording.

    Record Macro

  3. Perform the actions you want to automate, such equally entering boilerplate text or filling down a cavalcade of data.

  4. On the Developer tab, click Terminate Recording.

    Stop Recording

Icon image

Take a closer look at the macro

You tin learn a lilliputian about the Visual Basic programming language by editing a macro.

To edit a macro, in the Lawmaking group on the Developer tab, click Macros, select the proper name of the macro, and click Edit. This starts the Visual Basic Editor.

Meet how the actions that yous recorded appear as code. Some of the code will probably be clear to you lot, and some of information technology may exist a little mysterious.

Experiment with the code, close the Visual Basic Editor, and run your macro again. This time, come across if anything different happens!

Next steps

  • To acquire more about creating macros, see Create or delete a macro.

  • To learn nearly how to run a macro, see Run a macro.

How?

Icon image

Before yous tape a macro

Make sure the Developer tab is visible on the ribbon. By default, the Developer tab is non visible, and then do the following:

  1. Go to Excel > Preferences… > Ribbon & Toolbar.

  2. In the Customize the Ribbon category, in the Principal Tabs listing, select the Programmer check box, and then click Relieve.

Icon image

Record a macro

  1. On the Programmer tab, click Tape Macro.

  2. Optionally, enter a name for the macro in the Macro proper noun box, enter a shortcut central in the Shortcut key box, and a clarification in the Description box, and then click OK to commencement recording.

  3. Perform the actions you lot desire to automate, such as entering boilerplate text or filling down a cavalcade of data.

  4. On the Programmer tab, in the Lawmaking group, click Stop Recording.

Icon image

Take a closer look at the macro

Yous can acquire a niggling near the Visual Basic programming language by editing a macro.

To edit a macro, in the Developer tab, click Macros, select the name of the macro, and click Edit. This starts the Visual Basic Editor.

See how the deportment that you recorded appear as lawmaking. Some of the code volition probably be clear to you, and some of it may be a little mysterious.

Experiment with the code, shut the Visual Bones Editor, and run your macro again. This fourth dimension, see if anything different happens!

Need more than help?

You tin can always ask an expert in the Excel Tech Community or become back up in the Answers community.

Need more than help?

Source: https://support.microsoft.com/en-us/office/quick-start-create-a-macro-741130ca-080d-49f5-9471-1e5fb3d581a8

Posted by: castillorestled.blogspot.com

0 Response to "How To Create A Macro In Windows 8"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel