Dashboard Mode - Recording macros
Dashboard Goal
This dashboard helps you understand how to record and use macros in Excel to automate repetitive tasks, like formatting sales data quickly.
This dashboard helps you understand how to record and use macros in Excel to automate repetitive tasks, like formatting sales data quickly.
| Product | Region | Sales | Date |
|---|---|---|---|
| Apples | North | 120 | 2024-01-05 |
| Bananas | South | 150 | 2024-01-06 |
| Cherries | East | 90 | 2024-01-07 |
| Dates | West | 200 | 2024-01-08 |
| Elderberries | North | 170 | 2024-01-09 |
=SUM(C2:C6)+----------------------+----------------------+ | Total Sales | Format Sales Data | | (KPI) | (Macro Button) | +----------------------+----------------------+ | Sales Data Table | | | | Product | Region | Sales | Date | | Apples | North | 120 | 2024-01-05 | | Bananas | South | 150 | 2024-01-06 | | Cherries| East | 90 | 2024-01-07 | | Dates | West | 200 | 2024-01-08 | | Elderberries | North | 170 | 2024-01-09 | +----------------------------------------------------------+
The Format Sales Data macro button triggers a macro that formats the sales data table instantly. This helps users quickly apply consistent styling without manually formatting cells.
The Total Sales KPI updates automatically if the sales data changes, showing the new total.
If you add a new sales row for "Figs" with 130 sales and run the macro button, what happens?