![what is a macro in excel 2016 what is a macro in excel 2016](https://www.addintools.com/documents/excel/images/record-macro/shot-excel-record-macro-menus-691-486.png)
The second part of the code, says the font size of the selected cells should be “12”.
#WHAT IS A MACRO IN EXCEL 2016 CODE#
- In the first part, the code says the font color of the selected cell should be red, and it has used a numeric value for it.
- So for this, open the Visual Basic Editor, go to Developer tab ➜ Visual Basic editor. To understand this, you need to see the code first. The macro recorder generates a code for you at the back end when you are performing the activities. Workbook but now the next thing is to understand it.
- Once you do this, go back to the developer tab and click “Stop Recording” or you can also stop recording from the status bar where it says “click here to stop recording”.Ĭongratulations! You have made it and at this point, you have a recorded macro in your.
- So now, apply all the four formattings which we have decided.
- At this point, Excel’s stars to record everything (you can see the icon on the status bar which says “A macro is currently recording, click to stop recording”).
- Description: This macro applies a red color, font size 12, font style Verdana, and makes the font bold.
-
Store Macro in: Select Personal Macro Workbook.Shortcut Key: Press Shift + H to define the keyboard shortcut Control + Shift + H.And the moment you click it you’ll get a dialog box to fill some of the details about the macro you are going to record (yes, we need to fill it).After that, go to the “Developer Tab”, and before you hit the “RECORD” button, Turn ON the relative reference (we are going to learn about it in a few minutes).First of all, select cell A4 (it’s the cell we are going to apply the formatting and recording of our macro).RECORD a MACRO in Excel, you can use the following steps: So when you rerun this macro, it will select that particular cell to apply all the formatting on it.īut what we want is to apply the formatting on the cell, which is active (which is selected).ĭownload this macro-enabled file to follow along. The reason for this is if we select a cell while recording the macro, it will record that selection as well. Make apply following formatting to the selected cell:Īs I said, planning is essential, and before recording this macro, there’s one thing we need to take care of, and that is selecting the target cell before actually starting recording. Here we are going to record a macro which can Steps you need to perform and then stick to it while recording. The best way for this is to note down the The activity which you don’t want to execute while using the recorded macro The thing is, you don’t want to get a code for
In the same way, for recording a macro, it’s essential to do some planning.