Simulation
From the "Employees" worksheet, create a macro named "Header". Store the macro in the current workbook. Configure the macro to insert the "Sheet Name" in the left header cell of the active page and the "Page Number" in the right header cell.
Show answer and explanation
The Developer tab isn't displayed by default, but you can add it to the ribbon.
On the File tab, go to Options > Customize Ribbon. Under Customize the Ribbon and under Main Tabs, select the Developer check box.
Record a macro 1. In the Code group on the Developer tab, click Record Macro.
2. Optionally, enter a name for the macro in the Macro name box and a description in the Description box, and then click OK to start recording.

3. Select Page layout from the Ribbon and expand Page Setup.
4. Select the Header/Footer tab and click Custom Header.
5. In the Left section, click the Insert Sheet Name button.
6. In the Right section, click the Insert Page Number button.
7. Click OK. Then click OK again.
8. On the Developer tab, click Stop Recording.

9. On the Developer tab, click Macros to view the available Macros.
10. Select the Macro and click Run.







