12.16 The Personal Macro Workbook
PERSONAL.XLSB is a hidden workbook that opens every time Excel starts. Macros stored there are available in all workbooks – ideal for your everyday utilities (TrimCityColumn, FormatHeader, DeliveryFee).
Steps in Excel
- Developer › Code › Record Macro › Store macro in: Personal Macro Workbook › record any small action › Stop Recording. Excel creates PERSONAL.XLSB (in the XLSTART folder).
- Close Excel – when asked save changes to the Personal Macro Workbook? click Save.
- Open the VBE (Alt + F11) – VBAProject (PERSONAL.XLSB) appears in Project Explorer. Copy your general macros into its module.
- To edit it as a sheet: View › Window › Unhide › PERSONAL.XLSB (hide it again afterwards with View › Hide).
- Run from any workbook with Alt + F8 (macros show as
PERSONAL.XLSB!FormatHeader), or add them to the Quick Access Toolbar.
Ravindra Bagale's Tip
A macro in the Personal Macro Workbook exists only on your computer – many students send the file to a colleague and the macro button doesn't work. Keep macros that everyone needs in the file itself (.xlsm) or in an add-in. And when closing Excel, don't click "Don't Save" for PERSONAL.XLSB, otherwise the new macro is lost.
Ravindra Bagale's Tip – मराठी
Personal Macro Workbook मधला macro फक्त तुमच्या computer वर असतो – बरेच students file colleague ला पाठवतात आणि macro button चालत नाही. सगळ्यांना लागणारे macros त्या file मधेच (.xlsm) किंवा add-in मध्ये ठेवा. आणि Excel बंद करताना PERSONAL.XLSB save करायला "Don't Save" दाबू नका, नाहीतर नवीन macro जातो.
Ravindra Bagale's Tip – हिंदी
Personal Macro Workbook वाला macro सिर्फ़ तुम्हारे computer पर होता है – बहुत से students file colleague को भेजते हैं और macro button नहीं चलता. जो macros सबको चाहिए, उन्हें उसी file (.xlsm) में या add-in में रखो. और Excel बंद करते समय PERSONAL.XLSB के लिए "Don't Save" मत दबाना, वरना नया macro चला जाएगा.
Worked example — the personal macro workbook
Why
Neha Shah in Pune and James O'Neill abroad both need a clear, repeatable way to use the personal macro workbook on a GreenField Dairy sheet without breaking totals.
What
The Personal Macro Workbook is the Excel idea this page teaches. We will walk one tiny example end to end.
How
- Open a blank sheet. In A1 type a short label for the personal macro workbook.
- Enter a small made-up value for Neha Shah using $ where money appears.
- Add a second value for James O'Neill using € so you see mixed currencies stay numeric.
- Apply the method from this lesson step by step (menu or formula as shown above).
- Check the result still works inside SUM or a simple check cell.
Formula / action
Follow the formula or ribbon steps shown in this lesson (keep values numeric).
Meaning: Once the personal macro workbook is correct on one row, copy the same pattern down the column.
Practice tasks (10+)
Try these on a blank sheet. Open a hint only if you are stuck. No quiz — just practice.
1. Rebuild the smallest example of the personal macro workbook on a blank sheet for FreshGo Mart.
Hint: Use only the steps on this page. Keep numbers numeric.
2. Change one input for Sana Sheikh and confirm the result updates.
Hint: If the result is stuck, check absolute vs relative references.
3. Repeat the same steps with a £ or € value for James O'Neill.
Hint: Formatting must not break SUM.
4. Write the result meaning in one plain sentence next to the cell.
Hint: Imagine explaining it to a new joiners.
5. Add a second row and fill the method down.
Hint: Double-click the fill handle if the pattern is consistent.
6. Break the example on purpose, then fix it using this lesson.
Hint: Common break: text instead of a number.
7. Apply the personal macro workbook to a 5-row made-up FreshGo Mart table.
Hint: Keep column headers clear.
8. Check your answer with a simple total or COUNT.
Hint: A wrong total usually means a format or key mismatch.
9. Swap ₹ and $ on one column and re-check totals.
Hint: Stored values stay the same; only the display changes.
10. List two mistakes beginners make with the personal macro workbook.
Hint: Look back at the tip box on this page.
11. Teach the steps out loud in under one minute.
Hint: Why → What → How.
12. Save the sheet as FreshGoMart_practice.xlsx.
Hint: Use a clear file name for class.
Loading practice tasks...
- Last used row (Easy): Which row number is the last filled row? The headings are in row 1.
- Late orders (Easy): How many rows have Status "Late"?
- Total amount (Easy): Add up the Amount column.
- Worst delay (Easy): What is the largest number in the Days late column?
- Late orders in Pune (Medium): How many orders are Late and in City "Pune"?
- Customer for an order (Medium): Find the Customer for Order ID "DL-704".
- Money stuck in late orders (Medium): Add up the Amount column for rows where Status is "Late".
- Big orders (Medium): How many rows have an Amount of 2000 or more?
- Message text (Medium): Build the text "N late orders", where N is the count of Late rows.
- Average delay of late orders (Hard): What is the average Days late for rows with Status "Late"? Round to 1 decimal.
- Tag for the first row (Hard): For the first row, return "Chase" if Days late is 3 or more, else "OK".
- Warning or all clear (Hard): Return "Warning" if any order is 3 or more days late, else "All clear".
Quick revision cards
Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.


