You can see the macro by the name of Bold_Align, it will bold the font and align the text in center. Follow the procedure for creating a new macro. We will be recording a new macro, for formatting columns as Bold, and center align. Now we will stop recording Macro, navigate to developer tab and hit Stop Recording.
Now follow the same procedure to apply Conditional Formatting on Grade, and Prize Money field. Click OK.Īs you can see Conditional Formatting is applied on Marks table. Now navigate to Home tab, and from Conditional Formatting, go to Highlight Cells Rules menu, and click Less Than.Įnter value suitable for your datasheet, as you can see in the screenshot below we have entered 60 (to mark fail students with less than this number).
Now give it an appropriate name, and click OK to start recording macro. Navigate to Developer tab and click Record Macro. Click OK to to see Developer tab on the ribbon. In case you don’t find Developer tab, go to File menu, click Options, and in left pane click Customize Ribbon, from right pane enable Developer check-box. To start off with, we need to make Developer tab apparent on Excel window. We have included a datasheet, containing fields Name, Courses, Marks, Grade Prize Money. Launch Excel 2010, Create or open a datasheet in which you want to create button for Macros.įor instance, we will be using a very simple example to illustrate it in detail.
Excel enables you to create custom buttons to link macros with them, this post will elaborates how to create macros and associate buttons them with. By creating macro-buttons you will be able to associate macros with buttons, and show them on the worksheet for performing different tasks you have recorded with macro. But it would be extremely useful if you can run macro with a simple click on button, rather than running it manually.
Excel Macro feature lets you to record actions you perform on worksheet, and run the actions again for future use.