Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • Benefits and Disadvantages of BYOD Smartphones
  • How To Use an Apple Pencil on iPad iPad
  • How To Check Your Printed Documents History On Windows 10 Windows 10
  • 3 Best Games For Your RTX Ray Tracing GPU Gaming
  • Turn on Private Browsing Mode in Chrome and Opera Computer Tips
  • Best calculator ti84 2020

    Best calculator ti84 2020. 1 - SaiTech IT 3 Pack USB 2.0 A to Mini 5 pin B Cable for External HDDS/Camera/Card Readers -Black -50cm(1.5 feet)

  • Is game mode good or bad windows 11 Gaming
  • Which is better waze or google maps Software Reviews

How to Record Your First Excel Macro

Posted on October 6, 2020 By blog_786 No Comments on How to Record Your First Excel Macro

If you use Excel a lot in the workplace or for personal purposes, then you probably have several day to day tasks that are quite tedious and repetitive.

Whether it’s importing and clearing data, or exporting and organizing according to customer needs, you often have to click the same buttons and enter the same information over and over again.

The good news is that most, if not all of what you can do with your mouse and keyboard in Excel can be replicated by Excel itself using macros.

In this article, I’ll show you how to create a simple macro to get started automating a repetitive task you might have.

Record Macro in Excel

Imagine you are getting a data fetch from a client where the fields are not centered. As part of your day to day work, you need to center the margins by clicking the cells in the top left corner and setting the text alignment to center.

How to Record Your First Excel Macro

Using a macro, you can record the action once and let the macro repeat the same set of commands for you. Here are the steps:

First, enable the Developer tab in Excel by clicking File Options Customize Ribbon Mark Developer and click OK.

How to Record Your First Excel Macro

Once it’s enabled, go to Developer Click Record Macro.

How to Record Your First Excel Macro

You can name your macro whatever you want (in this example I named it “CenterText”) and click “OK”.

In addition, you will have the option to assign a keyboard shortcut to the macro, making it much easier to run it over and over again without going to the developer tab.

Also, the Save Macro To option is really useful if you want to create a generic macro that will work in any Excel workbook. Instead of choosing the default This Workbook, you can also choose Personal Macro Workbook, which will allow you to use the new macro in any future workbook that you open or create in Excel.

Then start your activity by clicking the cells and centering the fields with your mouse. The macro will record your clicks and the exact cell / icon you click in the Excel window and translates that into special code called VBA.

How to Record Your First Excel Macro

How to Record Your First Excel Macro

After that go back to the “Developer” tab and click “Stop Recording”.

How to Record Your First Excel Macro

Congratulations! You have recorded your first macro. The next time you have a new data extraction that has not been centered, you just need to go to Developer Macros Select Macro Name Run.

The macro will repeat the steps you recorded (for example, centering the text for all the cells in this exercise).

How to Record Your First Excel Macro

The final step is to save the file with a .xlsm extension (not the standard .xlsx) so that your Excel file will save the macros you recorded for future use. Remember that you do not need to do this if you selected Personal Macro Book when creating your macro.

How to Record Your First Excel Macro

Once you get the hang of it, a few hours of manual editing in Excel can be done in a much shorter time window using macros. By understanding that Excel can record repetitive actions and replay them, you can create automation as much as your imagination.

As a rule of thumb, anything you can accomplish with your mouse and keyboard can be repeated / automated many times faster with a macro. Enjoy!

–

Share this:

  • Twitter
  • Facebook
MS Office Tips

Post navigation

Previous Post: Philips Hue vs the Competition – Which are the Best Smart Lights?
Next Post: Listen To Audible Audiobooks Using Amazon Alexa on Your Echo Device

Related Posts

  • How to Filter Data in Excel MS Office Tips
  • How to Get OneDrive to Stop Emailing Memories MS Office Tips
  • How to Add and Print Excel Background Images MS Office Tips
  • How To Track Changes in Word (Online, Mobile, and Desktop) MS Office Tips
  • How to Open Multiple Instances of Excel MS Office Tips
  • The 7 Best Microsoft Word Add-Ins MS Office Tips

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • Six Copyscape Alternatives That you can use
  • How to Make Phone Calls Without Revealing Your True identity
  • 50 Useful Websites on the Internet You Didn’t Know Existed
  • Everything You Need to Know About WannaCry Ransomware Attack
  • Automatically Transcribe YouTube Video/Audio with Google Docs
DMCA.com Protection Status

Recent Posts

  • Six Copyscape Alternatives That you can use
  • 4 Different Ways to Test your Internet Speed
  • How to Make Phone Calls Without Revealing Your True identity
  • Use Secret Silver Subscription Plan to Save Money on Audible
  • Everything You Need to Know About WannaCry Ransomware Attack

Recent Comments

  1. 6 Things You Need Know About Email Encryption on Delete All Emails from Gmail With Once Click
  2. Looking For YouTube Alternative? Try These 7 Video Sharing Sites on Ten Best YouTube Video Editing Software 2023
  3. 8 (+1 New) Ways to Post on Instagram From Computer on How I Solved My Bluestacks Graphic Card Error (2 Ways)
  4. Find out what WordPress Theme and Plugin a Website is Using on How to Install a Theme on WordPress
  5. KeepVid Music: Use Online Music as your Personal Music Library on Top Ten Best iPad Music Apps
  • 25+ Best Safari Extensions You Should Try in 2019 How-To
  • Best ti83 graphing calculator 2020 Calculator
  • How to Split a Windows Image File (WIM to SVM) Windows
  • Search Inside Multiple Text Files at Once How-To
  • What to Look for in a TV for a Computer Monitor Gadgets
  • SP Armor A62 Game Drive Review Gadgets
  • Are the @ & ” Keys Swapped On Windows 10? – How To Fix It Help Desk
  • 15 Uplifting and Inspiring Movies to Watch on Netflix Right Now technology

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version