{"id":144,"date":"2015-06-03T09:53:47","date_gmt":"2015-06-03T08:53:47","guid":{"rendered":"http:\/\/www.mathsfiles.com\/blog\/?p=144"},"modified":"2015-06-04T13:08:57","modified_gmt":"2015-06-04T12:08:57","slug":"what-is-an-excel-macro","status":"publish","type":"post","link":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/","title":{"rendered":"What is an Excel Macro?"},"content":{"rendered":"<p><strong>An Introduction to Recording and Modifying an Excel Macro.<\/strong><\/p>\n<p>On a basic level one can use the Macro recorder to record some actions in Excel without looking at the code generated.<br \/>\nThe macro can then be attached to a button or run with a keyboard shortcut to replay those actions.<br \/>\nAt the next level one can look at the generated code in the Visual Basic Editor and start to understand what it does and begin to be able to tweak it to achieve something a bit more sophisticated.<br \/>\nAs one learns more and with the aid of internet forums and tutorials, it becomes possible to write code oneself and\/or to use and adapt other people&#8217;s code. Looping structures and other computer programming forms can be used.<br \/>\nThere are also special Excel Macros that are triggered by events such as when the worksheet recalculates. These can be used to create impressive effects.<\/p>\n<p>I have created a demo screen recording which shows how we can begin to use the Macro Recorder to learn about and modify VBA code.<\/p>\n<p>You can find the demo on the Excel techniques section of the Excel page at <a href=\"http:\/\/www.mathsfiles.com\/Excel_Files\" target=\"_blank\">MathsFiles.com<\/a> or click on this direct link :<br \/>\n<a href=\"http:\/\/www.mathsfiles.com\/Demos\/VBAdemo.demo\/VBAdemo.html\" target=\"_blank\">Macro Recorder demo<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An Introduction to Recording and Modifying an Excel Macro. On a basic level one can use the Macro recorder to record some actions in Excel without looking at the code generated. The macro can then be attached to a button or run with a keyboard shortcut to replay those actions. At the next level one &hellip; <a href=\"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">What is an Excel Macro?<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[19,20,17],"tags":[3,25,5,26,24],"class_list":["post-144","post","type-post","status-publish","format-standard","hentry","category-excel-macros","category-excel-techniques","category-mathsfiles-com-resources","tag-excel","tag-macro-recorder","tag-macros","tag-vba","tag-visual-basic"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learn how to use the Macro Recorder and Visual Basic Editor in Excel and begin to understand and modify the code produced.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"excelmike\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MathsFiles Blog - Maths Excel and Macros\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"What is an Excel Macro? - MathsFiles Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Learn how to use the Macro Recorder and Visual Basic Editor in Excel and begin to understand and modify the code produced.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-06-03T08:53:47+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-06-04T12:08:57+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"What is an Excel Macro? - MathsFiles Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Learn how to use the Macro Recorder and Visual Basic Editor in Excel and begin to understand and modify the code produced.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/2015\\\/06\\\/03\\\/what-is-an-excel-macro\\\/#blogposting\",\"name\":\"What is an Excel Macro? - MathsFiles Blog\",\"headline\":\"What is an Excel Macro?\",\"author\":{\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/author\\\/mikeh9\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/#organization\"},\"datePublished\":\"2015-06-03T09:53:47+01:00\",\"dateModified\":\"2015-06-04T13:08:57+01:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/2015\\\/06\\\/03\\\/what-is-an-excel-macro\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/2015\\\/06\\\/03\\\/what-is-an-excel-macro\\\/#webpage\"},\"articleSection\":\"Excel Macros, Excel Techniques, MathsFiles.com Resources, Excel, Macro Recorder, Macros, VBA, Visual Basic\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/2015\\\/06\\\/03\\\/what-is-an-excel-macro\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/category\\\/mathsfiles-com-resources\\\/#listItem\",\"name\":\"MathsFiles.com Resources\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/category\\\/mathsfiles-com-resources\\\/#listItem\",\"position\":2,\"name\":\"MathsFiles.com Resources\",\"item\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/category\\\/mathsfiles-com-resources\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/2015\\\/06\\\/03\\\/what-is-an-excel-macro\\\/#listItem\",\"name\":\"What is an Excel Macro?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/2015\\\/06\\\/03\\\/what-is-an-excel-macro\\\/#listItem\",\"position\":3,\"name\":\"What is an Excel Macro?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/category\\\/mathsfiles-com-resources\\\/#listItem\",\"name\":\"MathsFiles.com Resources\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/#organization\",\"name\":\"MathsFiles Blog\",\"description\":\"Maths Excel and Macros\",\"url\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/author\\\/mikeh9\\\/#author\",\"url\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/author\\\/mikeh9\\\/\",\"name\":\"excelmike\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/2015\\\/06\\\/03\\\/what-is-an-excel-macro\\\/#webpage\",\"url\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/2015\\\/06\\\/03\\\/what-is-an-excel-macro\\\/\",\"name\":\"What is an Excel Macro? - MathsFiles Blog\",\"description\":\"Learn how to use the Macro Recorder and Visual Basic Editor in Excel and begin to understand and modify the code produced.\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/2015\\\/06\\\/03\\\/what-is-an-excel-macro\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/author\\\/mikeh9\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/author\\\/mikeh9\\\/#author\"},\"datePublished\":\"2015-06-03T09:53:47+01:00\",\"dateModified\":\"2015-06-04T13:08:57+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/\",\"name\":\"MathsFiles Blog\",\"description\":\"Maths Excel and Macros\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mathsfiles.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"What is an Excel Macro? - MathsFiles Blog","description":"Learn how to use the Macro Recorder and Visual Basic Editor in Excel and begin to understand and modify the code produced.","canonical_url":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/#blogposting","name":"What is an Excel Macro? - MathsFiles Blog","headline":"What is an Excel Macro?","author":{"@id":"https:\/\/www.mathsfiles.com\/blog\/author\/mikeh9\/#author"},"publisher":{"@id":"https:\/\/www.mathsfiles.com\/blog\/#organization"},"datePublished":"2015-06-03T09:53:47+01:00","dateModified":"2015-06-04T13:08:57+01:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/#webpage"},"isPartOf":{"@id":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/#webpage"},"articleSection":"Excel Macros, Excel Techniques, MathsFiles.com Resources, Excel, Macro Recorder, Macros, VBA, Visual Basic"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.mathsfiles.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.mathsfiles.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.mathsfiles.com\/blog\/category\/mathsfiles-com-resources\/#listItem","name":"MathsFiles.com Resources"}},{"@type":"ListItem","@id":"https:\/\/www.mathsfiles.com\/blog\/category\/mathsfiles-com-resources\/#listItem","position":2,"name":"MathsFiles.com Resources","item":"https:\/\/www.mathsfiles.com\/blog\/category\/mathsfiles-com-resources\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/#listItem","name":"What is an Excel Macro?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.mathsfiles.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/#listItem","position":3,"name":"What is an Excel Macro?","previousItem":{"@type":"ListItem","@id":"https:\/\/www.mathsfiles.com\/blog\/category\/mathsfiles-com-resources\/#listItem","name":"MathsFiles.com Resources"}}]},{"@type":"Organization","@id":"https:\/\/www.mathsfiles.com\/blog\/#organization","name":"MathsFiles Blog","description":"Maths Excel and Macros","url":"https:\/\/www.mathsfiles.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.mathsfiles.com\/blog\/author\/mikeh9\/#author","url":"https:\/\/www.mathsfiles.com\/blog\/author\/mikeh9\/","name":"excelmike"},{"@type":"WebPage","@id":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/#webpage","url":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/","name":"What is an Excel Macro? - MathsFiles Blog","description":"Learn how to use the Macro Recorder and Visual Basic Editor in Excel and begin to understand and modify the code produced.","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/www.mathsfiles.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/#breadcrumblist"},"author":{"@id":"https:\/\/www.mathsfiles.com\/blog\/author\/mikeh9\/#author"},"creator":{"@id":"https:\/\/www.mathsfiles.com\/blog\/author\/mikeh9\/#author"},"datePublished":"2015-06-03T09:53:47+01:00","dateModified":"2015-06-04T13:08:57+01:00"},{"@type":"WebSite","@id":"https:\/\/www.mathsfiles.com\/blog\/#website","url":"https:\/\/www.mathsfiles.com\/blog\/","name":"MathsFiles Blog","description":"Maths Excel and Macros","inLanguage":"en-GB","publisher":{"@id":"https:\/\/www.mathsfiles.com\/blog\/#organization"}}]},"og:locale":"en_GB","og:site_name":"MathsFiles Blog - Maths Excel and Macros","og:type":"article","og:title":"What is an Excel Macro? - MathsFiles Blog","og:description":"Learn how to use the Macro Recorder and Visual Basic Editor in Excel and begin to understand and modify the code produced.","og:url":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/","article:published_time":"2015-06-03T08:53:47+00:00","article:modified_time":"2015-06-04T12:08:57+00:00","twitter:card":"summary_large_image","twitter:title":"What is an Excel Macro? - MathsFiles Blog","twitter:description":"Learn how to use the Macro Recorder and Visual Basic Editor in Excel and begin to understand and modify the code produced."},"aioseo_meta_data":{"post_id":"144","title":null,"description":"Learn how to use the Macro Recorder and Visual Basic Editor in Excel and begin to understand and modify the code produced.","keywords":[{"label":"Excel","value":"Excel"},{"label":"Macros","value":"Macros"},{"label":"Visual Basic","value":"Visual Basic"},{"label":"Code","value":"Code"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-10-06 17:50:03","updated":"2025-06-04 03:35:28","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.mathsfiles.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.mathsfiles.com\/blog\/category\/mathsfiles-com-resources\/\" title=\"MathsFiles.com Resources\">MathsFiles.com Resources<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWhat is an Excel Macro?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.mathsfiles.com\/blog"},{"label":"MathsFiles.com Resources","link":"https:\/\/www.mathsfiles.com\/blog\/category\/mathsfiles-com-resources\/"},{"label":"What is an Excel Macro?","link":"https:\/\/www.mathsfiles.com\/blog\/2015\/06\/03\/what-is-an-excel-macro\/"}],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6flNW-2k","_links":{"self":[{"href":"https:\/\/www.mathsfiles.com\/blog\/wp-json\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mathsfiles.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mathsfiles.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mathsfiles.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mathsfiles.com\/blog\/wp-json\/wp\/v2\/comments?post=144"}],"version-history":[{"count":6,"href":"https:\/\/www.mathsfiles.com\/blog\/wp-json\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":176,"href":"https:\/\/www.mathsfiles.com\/blog\/wp-json\/wp\/v2\/posts\/144\/revisions\/176"}],"wp:attachment":[{"href":"https:\/\/www.mathsfiles.com\/blog\/wp-json\/wp\/v2\/media?parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mathsfiles.com\/blog\/wp-json\/wp\/v2\/categories?post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mathsfiles.com\/blog\/wp-json\/wp\/v2\/tags?post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}