

{"id":96486,"date":"2021-06-17T09:00:30","date_gmt":"2021-06-17T03:30:30","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=96486"},"modified":"2021-06-14T12:36:06","modified_gmt":"2021-06-14T07:06:06","slug":"macros-in-excel","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/","title":{"rendered":"Macros in Excel"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Macros helps in automating the tasks that you wanted to do repeatedly by recording a macro. While recording a macro, each and every mouse clicks and keystrokes will be recorded. It can be edited or minor changes can be done as per the convenience. Macros is one of the programming codes that runs in an excel environment and it is widely helpful when the tasks are repetitive.<\/span><\/p>\n<h3>What is the use of Macros in Excel?<\/h3>\n<p><span style=\"font-weight: 400;\">Macros help you to complete your everyday routine tasks on a single button click. Macros records the routine steps and a single click on the button can replay it again and again.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>For example:<\/strong> You are an assistant manager and you wanted to design a call sheet template everyday. This task may seem boring if you are doing it everyday. In these types of situations, you can switch to using macros. Macros automates the routine tasks. You can use the macro to record the format of the layout of the call sheet template.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s now look at how macros are being formed and how they are useful to the user of MS-Excel.<\/span><\/p>\n<h3>How to Enable Macro Recording<\/h3>\n<h4>Method 1: From Developer Tab<\/h4>\n<p><span style=\"font-weight: 400;\">To enable macro recordings, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Right click on the ribbon.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Choose customize the ribbon option.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/customise-ribbon-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96689\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/customise-ribbon-1.png\" alt=\"customise ribbon\" width=\"1079\" height=\"436\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/customise-ribbon-1.png 1079w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/customise-ribbon-1-300x121.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/customise-ribbon-1-1024x414.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/customise-ribbon-1-150x61.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/customise-ribbon-1-768x310.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/customise-ribbon-1-720x291.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/customise-ribbon-1-520x210.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/customise-ribbon-1-320x129.png 320w\" sizes=\"auto, (max-width: 1079px) 100vw, 1079px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">3: Check the developer box.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/developer-box-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96690\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/developer-box-2.png\" alt=\"developer box\" width=\"782\" height=\"467\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/developer-box-2.png 782w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/developer-box-2-300x179.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/developer-box-2-150x90.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/developer-box-2-768x459.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/developer-box-2-720x430.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/developer-box-2-520x311.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/developer-box-2-320x191.png 320w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">4: Click ok.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">After following the steps, the developer tab appears on the excel sheet.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96691\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-3.png\" alt=\"Developer Tab\" width=\"1009\" height=\"141\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-3.png 1009w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-3-300x42.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-3-150x21.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-3-768x107.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-3-720x101.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-3-520x73.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-3-320x45.png 320w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">After activating, we could also find the macro symbol below the excel sheet name.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/macro-symbol-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96692\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/macro-symbol-4.png\" alt=\"macro symbol\" width=\"292\" height=\"91\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/macro-symbol-4.png 292w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/macro-symbol-4-150x47.png 150w\" sizes=\"auto, (max-width: 292px) 100vw, 292px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">This represents that the macro recorder is on.<\/span><\/p>\n<h4>Method 2: From Trust Center Settings<\/h4>\n<p><span style=\"font-weight: 400;\">1: Go to the file tab and click on the options from the left side of the pane.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Click on the trust center option from the left side of the dialog box.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96693\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center.png\" alt=\"trust center\" width=\"529\" height=\"427\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center.png 529w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-300x242.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-150x121.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-520x420.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-320x258.png 320w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">3: Click on the trust center settings and a dialog box appears.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4: Choose the macro settings from the left side of the window and click on the radio button beside \u2018Enable all macros (not recommended; potentially dangerous code can run) radio button.\u2019<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-radio-buttons.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96694\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-radio-buttons.png\" alt=\"trust center radio button\" width=\"1029\" height=\"840\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-radio-buttons.png 1029w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-radio-buttons-300x245.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-radio-buttons-1024x836.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-radio-buttons-150x122.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-radio-buttons-768x627.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-radio-buttons-720x588.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-radio-buttons-520x424.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-radio-buttons-320x261.png 320w\" sizes=\"auto, (max-width: 1029px) 100vw, 1029px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">5: Finally, press ok.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">After following these steps, the macros will run on all excel worksheets without any warning messages.<\/span><\/p>\n<h3><b>Recording macro in Excel<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Now, let&#8217;s see how to record a macro. To record a macro, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Click on the macro record icon.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96695\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-5.png\" alt=\"Record Macro\" width=\"990\" height=\"301\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-5.png 990w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-5-300x91.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-5-150x46.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-5-768x234.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-5-720x219.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-5-520x158.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-5-320x97.png 320w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96696\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-5.png\" alt=\"recording macro\" width=\"1014\" height=\"584\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-5.png 1014w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-5-300x173.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-5-150x86.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-5-768x442.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-5-720x415.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-5-520x299.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-5-320x184.png 320w\" sizes=\"auto, (max-width: 1014px) 100vw, 1014px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">2: A box appears like this. Fill it out as you require and click on the \u201cok\u201d button.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-sample-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96697\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-sample-6.png\" alt=\"record macro sample\" width=\"997\" height=\"540\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-sample-6.png 997w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-sample-6-300x162.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-sample-6-150x81.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-sample-6-768x416.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-sample-6-720x390.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-sample-6-520x282.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-macro-sample-6-320x173.png 320w\" sizes=\"auto, (max-width: 997px) 100vw, 997px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Note<\/strong>: You can fill the box if required or otherwise you could leave it as such. Once you click on the ok button, the macro recording starts.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-symbol-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96698\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-symbol-7.png\" alt=\"Macro record symbol\" width=\"374\" height=\"57\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-symbol-7.png 374w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-symbol-7-300x46.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-symbol-7-150x23.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/record-symbol-7-320x49.png 320w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">This symbol denotes that the recording has started. After the appearance of this symbol, each and every move will be recorded.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let&#8217;s look at what does the macro do with an example:<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/data-img.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96699\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/data-img.png\" alt=\"Macro data sample\" width=\"555\" height=\"481\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/data-img.png 555w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/data-img-300x260.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/data-img-150x130.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/data-img-520x451.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/data-img-320x277.png 320w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">In this, we have students and their marks in three different sheets. Here, we have to calculate the percentage of each student and average in each subject.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">So, in this, we are going to repeat the steps. Hence, to save time and reduce the work, we are going to use macros.<\/span><\/p>\n<h3>How to start a macro?<\/h3>\n<p><span style=\"font-weight: 400;\">1: Click on the developer tab.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Choose the record macro option.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-record.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96701\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-record.png\" alt=\"dev tab record\" width=\"1075\" height=\"618\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-record.png 1075w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-record-300x172.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-record-1024x589.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-record-150x86.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-record-768x442.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-record-720x414.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-record-520x299.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/dev-tab-record-320x184.png 320w\" sizes=\"auto, (max-width: 1075px) 100vw, 1075px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Note: A box appears when you click on the record macro.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/filling-box-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96702\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/filling-box-8.png\" alt=\"filling box in Macros\" width=\"868\" height=\"441\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/filling-box-8.png 868w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/filling-box-8-300x152.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/filling-box-8-150x76.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/filling-box-8-768x390.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/filling-box-8-720x366.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/filling-box-8-520x264.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/filling-box-8-320x163.png 320w\" sizes=\"auto, (max-width: 868px) 100vw, 868px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">3: Fill the box and as we are finding averages, we are naming it averages here.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Note: The shortcut key, description are optional. You can fill it if you want or else you could leave it as blank.\u00a0 In the store macro in label, choose on this workbook option.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4: After filling the box, press ok.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This is how we have to start a macro. Once you press ok, the macro recording gets started.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">From then, each and every move will be recorded. Once, every step is being recorded for a sheet in the spreadsheet, then it can be easy to access in other sheets.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-a-macro.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96703\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-a-macro.png\" alt=\"run a macro in Excel\" width=\"461\" height=\"459\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-a-macro.png 461w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-a-macro-300x300.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-a-macro-150x150.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-a-macro-80x80.png 80w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-a-macro-320x319.png 320w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">In our dataset, we have found the average score in each subject\u00a0 and percentage of each student.<\/span><\/p>\n<h3><b>How to run a Macro?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Now, we know how to record a macro and save it. Hence, now we will learn how to run a macro. In order to try the same thing to happen in the Language mark sheet using a macro, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Click on the Developer tab.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Choose the Macros option.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Note: A box appears with the macros we have already recorded.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-option-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96704\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-option-11.png\" alt=\"Macro Run Option\" width=\"1043\" height=\"765\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-option-11.png 1043w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-option-11-300x220.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-option-11-1024x751.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-option-11-150x110.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-option-11-768x563.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-option-11-720x528.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-option-11-520x381.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/run-option-11-320x235.png 320w\" sizes=\"auto, (max-width: 1043px) 100vw, 1043px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">3: Click on the macro you wanted to apply.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4: Click on the run button.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Note: We could either follow the steps or press on the shortcut key we have assigned to that particular macro.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Once we apply this to our dataset, then the average and percentage of the subject appears with no time.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let&#8217;s look at it.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/sample-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96705\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/sample-12.png\" alt=\"Macro Sample\" width=\"584\" height=\"511\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/sample-12.png 584w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/sample-12-300x263.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/sample-12-150x131.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/sample-12-520x455.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/sample-12-320x280.png 320w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Thus, this is how a macro works.<\/span><\/p>\n<h3><b>Debugging a Macro Code<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Sometimes, there are chances of users to commit mistakes in the code and this results in error. So to overcome the error in the code, we can debug the code just as we do to any other code to know about the error and eventually we can correct them.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s see how to look at the macro recorded code lines. In order to look at it, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Click on the Developer tab.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Choose the macros option.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3: Choose the \u201c Step Into \u201d option from the box.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/step-into-13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96706\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/step-into-13.png\" alt=\"step into\" width=\"948\" height=\"615\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/step-into-13.png 948w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/step-into-13-300x195.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/step-into-13-150x97.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/step-into-13-768x498.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/step-into-13-720x467.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/step-into-13-520x337.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/step-into-13-320x208.png 320w\" sizes=\"auto, (max-width: 948px) 100vw, 948px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">After following the steps, the code automatically opens up in Microsoft Visual Basics for Applications.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96717\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30.png\" alt=\"Macros in Excel\" width=\"1920\" height=\"1032\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30.png 1920w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30-300x161.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30-1024x550.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30-150x81.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30-768x413.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30-1536x826.png 1536w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30-720x387.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30-520x280.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/pasted-image-0-30-320x172.png 320w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">The steps lead to opening of the code. If you want to edit on the code directly, then click on the edit option in the box. It gives you access to edit the code in the code console itself.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96707\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-14.png\" alt=\"Edit in Macros\" width=\"944\" height=\"593\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-14.png 944w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-14-300x188.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-14-150x94.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-14-768x482.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-14-720x452.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-14-520x327.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-14-320x201.png 320w\" sizes=\"auto, (max-width: 944px) 100vw, 944px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Once you click on it, the code console opens up and you can start editing in the code itself.<\/span><\/p>\n<h4>1. How to open a macro<\/h4>\n<p><span style=\"font-weight: 400;\">To open a macro, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Go to the view tab and click on the macros icon.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Click on the view macro to view it.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/open-a-macro.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96708\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/open-a-macro.png\" alt=\"open a macro\" width=\"1446\" height=\"219\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/open-a-macro.png 1446w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/open-a-macro-300x45.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/open-a-macro-1024x155.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/open-a-macro-150x23.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/open-a-macro-768x116.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/open-a-macro-720x109.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/open-a-macro-520x79.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/open-a-macro-320x48.png 320w\" sizes=\"auto, (max-width: 1446px) 100vw, 1446px\" \/><\/a><\/p>\n<h4>2. View Macro<\/h4>\n<p><span style=\"font-weight: 400;\">When the user clicks on the view macro, a dialog box appears with the existing macros along with run, edit or delete macro options.<\/span><\/p>\n<h4>3. Record Macro<\/h4>\n<p><span style=\"font-weight: 400;\">When the user clicks on the record macro, a dialog box appears asking for the macros details and the user can record the macros after filling it.<\/span><\/p>\n<h4>4. Absolute References<\/h4>\n<p><span style=\"font-weight: 400;\">An absolute reference macro would perform the exact steps that have been recorded. Usually, the macros are being recorded in absolute references type. While recording an absolute reference macro, ensure that all the steps are being recorded from the start to end.<\/span><\/p>\n<h4>5. Relative References<\/h4>\n<p><span style=\"font-weight: 400;\">Relative reference is a type of function in macros. It is being used widely when there is a lot of data to be arranged in a specific format. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">To enable the relative reference macro, click on the view tab, go to macros and choose \u201cUse Relative References\u201d, then you start the macro recording. A <\/span><span style=\"font-weight: 400;\">macro recorded using relative references can perform the tasks at different parts on the worksheet.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/relatove-ref.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96709\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/relatove-ref.png\" alt=\"relative reference\" width=\"1453\" height=\"214\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/relatove-ref.png 1453w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/relatove-ref-300x44.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/relatove-ref-1024x151.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/relatove-ref-150x22.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/relatove-ref-768x113.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/relatove-ref-720x106.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/relatove-ref-520x77.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/relatove-ref-320x47.png 320w\" sizes=\"auto, (max-width: 1453px) 100vw, 1453px\" \/><\/a><\/p>\n<h4>6. Deleting a Macro<\/h4>\n<p><span style=\"font-weight: 400;\">We can also delete a macro. In order to do that, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Click on the Developer tab.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Choose the macros option.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3: Choose the \u201c Delete \u201d option from the box.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/delete-15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96710\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/delete-15.png\" alt=\"Delete macro\" width=\"932\" height=\"610\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/delete-15.png 932w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/delete-15-300x196.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/delete-15-150x98.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/delete-15-768x503.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/delete-15-720x471.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/delete-15-520x340.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/delete-15-320x209.png 320w\" sizes=\"auto, (max-width: 932px) 100vw, 932px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Once it\u2019s clicked, the macro gets deleted.<\/span><\/p>\n<h4>7. Options label<\/h4>\n<p><span style=\"font-weight: 400;\">In case, if you change your mind to change the shortcut key and description of that particular macro, then click on the option label from the box. Then, again a box appears with the edit options.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96711\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-16.png\" alt=\"Options Label\" width=\"977\" height=\"735\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-16.png 977w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-16-300x226.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-16-150x113.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-16-768x578.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-16-720x542.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-16-520x391.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-16-320x241.png 320w\" sizes=\"auto, (max-width: 977px) 100vw, 977px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">After editing, click on the ok button.\u00a0<\/span><\/p>\n<h4>8. Assigning a macro to a shape<\/h4>\n<p><span style=\"font-weight: 400;\">Let\u2019s look at how to assign a macro to a shape. In order to do that, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Click on the Insert tab.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Choose the shapes.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3: Click on the shape you want.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Note: We are choosing a rectangle here. Have a look at the sample below.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/insert.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96713\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/insert.png\" alt=\"Insert in Macros\" width=\"1049\" height=\"644\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/insert.png 1049w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/insert-300x184.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/insert-1024x629.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/insert-150x92.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/insert-768x471.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/insert-720x442.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/insert-520x319.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/insert-320x196.png 320w\" sizes=\"auto, (max-width: 1049px) 100vw, 1049px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">4: Right click on the shape in the worksheet.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">5: Choose to \u201cAssign macro\u201d.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">6: Click on the macro you wanted to apply.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">7: Click ok button.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/assigning-a-macro.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96712\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/assigning-a-macro.png\" alt=\"assigning a macro\" width=\"1006\" height=\"735\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/assigning-a-macro.png 1006w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/assigning-a-macro-300x219.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/assigning-a-macro-150x110.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/assigning-a-macro-768x561.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/assigning-a-macro-720x526.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/assigning-a-macro-520x380.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/assigning-a-macro-320x234.png 320w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">After the steps are being followed, the macro will be assigned to the shape. Now, whenever you click on the shape, the recorded macro will work on your spreadsheet.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s look at how to add the macro to the quick access toolbar. In order to do that, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Click on the File tab<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Choose options.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3: A box appears and choose the Quick Access Toolbar.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4: Click on the view macros and click on the add button.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-macros.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96714\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-macros.png\" alt=\"view macros\" width=\"1520\" height=\"794\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-macros.png 1520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-macros-300x157.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-macros-1024x535.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-macros-150x78.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-macros-768x401.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-macros-720x376.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-macros-520x272.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-macros-320x167.png 320w\" sizes=\"auto, (max-width: 1520px) 100vw, 1520px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">5: Then, press ok.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/icon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96715\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/icon.png\" alt=\"Macros Icon\" width=\"760\" height=\"404\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/icon.png 760w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/icon-300x159.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/icon-150x80.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/icon-720x383.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/icon-520x276.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/icon-320x170.png 320w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">After following the steps, the macro icon is also viewed at the top of the excel worksheet. Once, you click on the icon then you can view all the recorded macro of the worksheet.\u00a0<\/span><\/p>\n<h4>9. How to save a macro-enabled file?<\/h4>\n<p><span style=\"font-weight: 400;\">To keep the macro enabled in the worksheet, save the excel worksheet type as Excel Macro-Enabled Workbook.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/save-as-17.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96718\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/save-as-17.png\" alt=\"Macro Enabled Worksheet\" width=\"919\" height=\"537\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/save-as-17.png 919w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/save-as-17-300x175.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/save-as-17-150x88.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/save-as-17-768x449.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/save-as-17-720x421.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/save-as-17-520x304.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/save-as-17-320x187.png 320w\" sizes=\"auto, (max-width: 919px) 100vw, 919px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">This is how we have to save a macro enabled worksheet.<\/span><\/p>\n<h4>10. Saving Macros in a Personal Workbook<\/h4>\n<p><span style=\"font-weight: 400;\">Create a macro and save them in a personal macro workbook.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/personal-workbook.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96719\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/personal-workbook.png\" alt=\"personal workbook in macros\" width=\"841\" height=\"533\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/personal-workbook.png 841w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/personal-workbook-300x190.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/personal-workbook-150x95.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/personal-workbook-768x487.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/personal-workbook-720x456.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/personal-workbook-520x330.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/personal-workbook-320x203.png 320w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">By creating a macro and storing them in a personal macro workbook would help you hide the information that the worksheet is macro enabled. It saves the spreadsheet as a normal excel workbook rather than saving it as a macro enabled worksheet.<\/span><\/p>\n<h4><b>11. Hiding \/ Unhiding a personal Macro workbook:<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">If you want to make changes in the macros which are being stored in a personal macro workbook, then click on the view tab and choose to unhide from the ribbon. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Following the above instruction, you can unhide your personal workbook since they will be hidden by default. After unhiding, you can run your macro or edit it as per your convenience.<\/span><\/p>\n<h3>How to view macros in VBA<\/h3>\n<p><span style=\"font-weight: 400;\">Macros are being stored in excel as VBA code. After recording a macro, we can view, modify, copy the code that is generated. We can also write code in the VBA code editor. There are three ways to view excel macro code. They are as follows:<\/span><\/p>\n<h4>1. Developer Tab on the Ribbon<\/h4>\n<p><span style=\"font-weight: 400;\">Go to the Developer tab, click on the view code from the ribbon.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-code-from-ribbon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96720\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-code-from-ribbon.png\" alt=\"view code from ribbon\" width=\"1083\" height=\"221\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-code-from-ribbon.png 1083w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-code-from-ribbon-300x61.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-code-from-ribbon-1024x209.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-code-from-ribbon-150x31.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-code-from-ribbon-768x157.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-code-from-ribbon-720x147.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-code-from-ribbon-520x106.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/view-code-from-ribbon-320x65.png 320w\" sizes=\"auto, (max-width: 1083px) 100vw, 1083px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">This leads to the VBA code editor window screen.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96734\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17.png\" alt=\"Macros in Excel\" width=\"1568\" height=\"651\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17.png 1568w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-300x125.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1024x425.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-150x62.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-768x319.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1536x638.png 1536w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-720x299.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-520x216.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-320x133.png 320w\" sizes=\"auto, (max-width: 1568px) 100vw, 1568px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">VBA code editor contains the code of already recorded macros.<\/span><\/p>\n<h4>2. Visual Basic Icon<\/h4>\n<p><span style=\"font-weight: 400;\">Go to the developer tab and click on the visual basic icon. This automatically leads us to the VBA code editor window screen.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/visual-basic-icon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96721\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/visual-basic-icon.png\" alt=\"visual basic icon\" width=\"1162\" height=\"204\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/visual-basic-icon.png 1162w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/visual-basic-icon-300x53.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/visual-basic-icon-1024x180.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/visual-basic-icon-150x26.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/visual-basic-icon-768x135.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/visual-basic-icon-720x126.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/visual-basic-icon-520x91.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/visual-basic-icon-320x56.png 320w\" sizes=\"auto, (max-width: 1162px) 100vw, 1162px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96735\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1.png\" alt=\"Macros in Excel\" width=\"1568\" height=\"651\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1.png 1568w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1-300x125.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1-1024x425.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1-150x62.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1-768x319.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1-1536x638.png 1536w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1-720x299.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1-520x216.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/image2-17-1-320x133.png 320w\" sizes=\"auto, (max-width: 1568px) 100vw, 1568px\" \/><\/a><\/p>\n<h4>3. Macro Dialog box<\/h4>\n<p><span style=\"font-weight: 400;\">You can also open the code editor by clicking on the macros on the view tab. Choose view macros and choose the respective macro and click on the edit button. This leads you to the VBA code editor.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-button.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96722\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-button.png\" alt=\"edit button in Macros\" width=\"553\" height=\"469\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-button.png 553w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-button-300x254.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-button-150x127.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-button-520x441.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/edit-button-320x271.png 320w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">The code editor also holds following few components and they are:<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">Projects Explorer<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Properties window<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Module window with code<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/properties-window.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96723\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/properties-window.png\" alt=\"VBA properties window\" width=\"467\" height=\"935\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/properties-window.png 467w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/properties-window-150x300.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/properties-window-75x150.png 75w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/properties-window-320x641.png 320w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/a><\/p>\n<h4>1. Projects Explorer<\/h4>\n<p><span style=\"font-weight: 400;\">VBA project names appear under the title of project explorer. in . Under each project, the sheet names and module names are available. When you click on a module name, the corresponding code appears on the code window.<\/span><\/p>\n<h4>2. Properties Window<\/h4>\n<p><span style=\"font-weight: 400;\">VBA object parameters are the properties. The properties appear in the properties window. If the user chooses the object such as a command button then those properties appear in the window.\u00a0<\/span><\/p>\n<h4>3. Module window with code<\/h4>\n<p><span style=\"font-weight: 400;\">In VBA, the macro codes are stored in modules. When the user selects a macro and clicks edit, then the code automatically\u00a0 appears in the code window.<\/span><\/p>\n<h3>How to recover a macro in Excel?<\/h3>\n<p><span style=\"font-weight: 400;\">When the user loses or deletes the macro unknowingly then rather than creating a new macro, the user can recover the macro itself.<\/span><\/p>\n<h3>Software to recover macros or corrupted Excel files<\/h3>\n<p><span style=\"font-weight: 400;\">There are professional software tools available to recover the corrupted excel sheets. Using these softwares, the user can easily restore the excel sheets, charts and other important data. One of the popular software tools is MS Excel repair tool.<\/span><\/p>\n<h3>What is the MS Excel repair tool?<\/h3>\n<p><span style=\"font-weight: 400;\">MS Excel repair tool is one of the tools used to recover the lost macros.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"> Using this tool, the user can easily fix the errors in the excel sheets and it can also help the user to access the damaged Excel files as well. This repair tool is compatible with windows as well as mac operating systems. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">The advantage of this tool is it supports all versions of Excel and the demo is free.<\/span><\/p>\n<h4>Steps to use MS Excel repair tool<\/h4>\n<p><span style=\"font-weight: 400;\">1: Download the <a href=\"http:\/\/www.repairmsexcel.com\/blog\/free-download-for-mac\">MS Excel repair tool<\/a> on your system.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Install this software tool in your device, click next and check the box agreeing to all terms and conditions.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3: Press on the ok button and keep moving forward.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4: Choose the browse button if you know the path of the corrupted excel file and click on the corrupted excel file.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">5: If you are not sure about the file path, click on the search button and select the file.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Note<\/strong>: The excel files will be listed and the tool will find and repair the corrupted file from the chosen folder.\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">6:\u00a0 Click on the repair button after choosing the corrupted file.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Note<\/strong>: You can see that the corrupted files are in progress.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">7: Once the scan is done, the user can preview the corrupted file that has been repaired now from the right panel.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">8: Choose a location to save the file.<\/span><\/p>\n<h3>Steps to recover personal Macro workbook<\/h3>\n<p><span style=\"font-weight: 400;\">To recover the personal macro workbook, follow the steps below:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Go to the File tab and choose options from the left panel.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96724\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options.png\" alt=\"File tab\" width=\"166\" height=\"694\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options.png 166w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-72x300.png 72w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/options-36x150.png 36w\" sizes=\"auto, (max-width: 166px) 100vw, 166px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">2: Click on the Add-ins on the left panel of the dialog box.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/add-ins-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96725\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/add-ins-1.png\" alt=\"add ins\" width=\"539\" height=\"435\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/add-ins-1.png 539w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/add-ins-1-300x242.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/add-ins-1-150x121.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/add-ins-1-520x420.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/add-ins-1-320x258.png 320w\" sizes=\"auto, (max-width: 539px) 100vw, 539px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">3: Go to Manage dropdown list, choose disabled Items (last item of the list).<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diabled-items.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96726\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diabled-items.png\" alt=\"diabled items\" width=\"556\" height=\"457\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diabled-items.png 556w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diabled-items-300x247.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diabled-items-150x123.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diabled-items-520x427.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diabled-items-320x263.png 320w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">4: Click on the OK button and restart the MS Excel.<\/span><\/p>\n<h3>Macro Recovery Method<\/h3>\n<p><span style=\"font-weight: 400;\">Sometimes the user may lose the macro along with the corrupted file. In order to recover those macros, the user has to recover the corrupted workbook.<\/span><\/p>\n<h4>Method 1: Set the Calculation option to Manual<\/h4>\n<p><span style=\"font-weight: 400;\">To recover the macros using this method, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Open the MS Excel and not the corrupted excel workbook.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Go to the formula tab and click on the calculation options.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3: Choose manual from the drop down menu.\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/manual-formula-tab.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96727\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/manual-formula-tab.png\" alt=\"manual formula tab\" width=\"797\" height=\"127\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/manual-formula-tab.png 797w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/manual-formula-tab-300x48.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/manual-formula-tab-150x24.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/manual-formula-tab-768x122.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/manual-formula-tab-720x115.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/manual-formula-tab-520x83.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/manual-formula-tab-320x51.png 320w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/a><\/p>\n<h5>Setting up the security high<\/h5>\n<p><span style=\"font-weight: 400;\">To set up the macro security maximum, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Go to the file tab and click on the options.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Choose formulas from the left side of the pane.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3: Under the calculation options setting, set the maximum change and click on the ok button.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/maximum-change.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96728\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/maximum-change.png\" alt=\"maximum change\" width=\"1038\" height=\"845\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/maximum-change.png 1038w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/maximum-change-300x244.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/maximum-change-1024x834.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/maximum-change-150x122.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/maximum-change-768x625.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/maximum-change-720x586.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/maximum-change-520x423.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/maximum-change-320x261.png 320w\" sizes=\"auto, (max-width: 1038px) 100vw, 1038px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">4: Now, open the corrupted workbook and if the workbook runs successfully, the user will receive a message that the macros were disabled.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Hope the user recovers the lost macro successfully after setting up the setting as described above.<\/span><\/p>\n<h4>Method 2: Change the Macro Security Option<\/h4>\n<p><span style=\"font-weight: 400;\">To change the macro security options, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Open the MS Excel and not the corrupted excel sheet.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Go to the files tab and choose options.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3: Click on the trust center from the left side panel of the window and choose trust center settings..<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><strong>Note<\/strong>: A new dialog box appears.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4: Go to macro settings from the left side panel.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-setting.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96729\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-setting.png\" alt=\"trust center setting\" width=\"532\" height=\"432\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-setting.png 532w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-setting-300x244.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-setting-150x122.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-setting-520x422.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/trust-center-setting-320x260.png 320w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">5:\u00a0 Enable Disable All Macros with notification.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diable-all-macro.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96731\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diable-all-macro.png\" alt=\"disable all macro\" width=\"516\" height=\"423\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diable-all-macro.png 516w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diable-all-macro-300x246.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diable-all-macro-150x123.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/diable-all-macro-320x262.png 320w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">6: Finally, press the ok button.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">7: Now, open the corrupted workbook and if the workbook runs successfully, the user will receive a message that the macros were disabled or if excel does not open, then it means that the method did not work.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Hope the user recovers the lost macro successfully, after setting up the setting as described above.<\/span><\/p>\n<h4>Macro Security<\/h4>\n<p><span style=\"font-weight: 400;\">Macros are executed using VBA code in Excel. There are chances of some other malicious code to be executed when you open a macro enabled workbook. This is considered to be a threat to your system. Hence, Microsoft provides a macro security facility that helps in protecting your system.<\/span><\/p>\n<h3>What are Macro Viruses?<\/h3>\n<p><span style=\"font-weight: 400;\">Macros can also contain viruses. Excel VBA in which the macros are written has access to most of the Windows system calls and sometimes the macros are automatically executed when the user opens the spreadsheet.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"> There is a potential threat of the existence of a virus written as a macro and it\u2019s hidden within Excel. These types of macros have a lot of chances to get executed when we open a workbook. Therefore, Excel macros can be very dangerous and it might attack your system. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Though, there are measures taken but still we should be cautious while using macros in Excel. Microsoft has also developed macro security in which you can identify which macros you can trust and which you cannot trust.<\/span><\/p>\n<h4>1. Disabling the Macros<\/h4>\n<p><span style=\"font-weight: 400;\">Excel usually disables the macros and if the user wants to run a macro then, they have to enable it manually. Now, let\u2019s see how to disable the macros manually. In order to disable, follow the steps:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">1: Go to the home tab, choose options from the left side menu.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2: Select trust center from the left side of the dialog box and click on the trust center settings&#8230;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3: In the left menu, go to Macro settings and click on the disable all macro settings without notification.<\/span><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/disable-macros-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-96732\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/disable-macros-1.png\" alt=\"disable macros\" width=\"515\" height=\"426\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/disable-macros-1.png 515w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/disable-macros-1-300x248.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/disable-macros-1-150x124.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/disable-macros-1-320x265.png 320w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">4: Press OK.<\/span><\/p>\n<h3>Summary<\/h3>\n<p><span style=\"font-weight: 400;\">1. Macro is a series of instructions that can be recorded and it starts by providing a name to it.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">2. Macro helps in automating repetitive tasks.\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">3. The macros are written in Visual Basic for Applications programming language.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">4. It saves a lot of time by not repeating the routine tasks in a worksheet.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">5. The other advantage of recording a macro is that we can run a macro as many times as we want.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Macros helps in automating the tasks that you wanted to do repeatedly by recording a macro. While recording a macro, each and every mouse clicks and keystrokes will be recorded. It can be edited&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":96687,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24129],"tags":[24506,24508,24509,24507,24505,24512,24510,24511,24513],"class_list":["post-96486","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ms-excel","tag-disabling-macros-in-excel","tag-macro-recovery-method","tag-macro-security","tag-macro-viruses","tag-macros-in-excel","tag-ms-excel-repair-tool","tag-personal-macro-workbook","tag-recover-personal-macro-workbook","tag-use-of-macros-in-excel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Macros in Excel - DataFlair<\/title>\n<meta name=\"description\" content=\"Macros is one of the programming codes that runs in an excel environment and it is widely helpful when the tasks are repetitive.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/macros-in-excel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Macros in Excel - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Macros is one of the programming codes that runs in an excel environment and it is widely helpful when the tasks are repetitive.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/macros-in-excel\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-17T03:30:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/Macros-in-MS-Excel1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"22 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Macros in Excel - DataFlair","description":"Macros is one of the programming codes that runs in an excel environment and it is widely helpful when the tasks are repetitive.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/","og_locale":"en_US","og_type":"article","og_title":"Macros in Excel - DataFlair","og_description":"Macros is one of the programming codes that runs in an excel environment and it is widely helpful when the tasks are repetitive.","og_url":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2021-06-17T03:30:30+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/Macros-in-MS-Excel1.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"22 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Macros in Excel","datePublished":"2021-06-17T03:30:30+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/"},"wordCount":2872,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/Macros-in-MS-Excel1.jpg","keywords":["Disabling Macros in Excel","Macro Recovery Method","Macro Security","Macro Viruses","Macros in Excel","MS Excel repair tool","personal Macro workbook","Recover personal Macro workbook","use of Macros in Excel"],"articleSection":["MS Excel Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/macros-in-excel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/","url":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/","name":"Macros in Excel - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/Macros-in-MS-Excel1.jpg","datePublished":"2021-06-17T03:30:30+00:00","description":"Macros is one of the programming codes that runs in an excel environment and it is widely helpful when the tasks are repetitive.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/macros-in-excel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/Macros-in-MS-Excel1.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/06\/Macros-in-MS-Excel1.jpg","width":1200,"height":628,"caption":"Macros in Excel"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/macros-in-excel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"MS Excel Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/ms-excel\/"},{"@type":"ListItem","position":3,"name":"Macros in Excel"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/96486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=96486"}],"version-history":[{"count":6,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/96486\/revisions"}],"predecessor-version":[{"id":96736,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/96486\/revisions\/96736"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/96687"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=96486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=96486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=96486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}