VBA & Macro Problems

Fix Excel Family Tree Generator Macro Error After Saving

Nimra MalikNimra Malik Nov 3, 2026 868 views

Question details

The user is unable to run the Create Family Tree macro after saving and reopening the Excel Family Tree Generator template.

How to Fix the Excel Family Tree Generator Macro Error After Saving
Product
Microsoft Excel
Device & OS
not provided
Scenario
Saving progress in the Excel Family Tree Generator template to continue editing or generating the tree at a later time.
Observed behavior
After closing and reopening the saved file, the macro no longer runs and the Create Family Tree command fails because the macros were removed during the save process.
Before you start

Before proceeding, check the file extension of your current Family Tree workbook. If it ends in .xlsx, the macros have been permanently stripped, and you will need to download a fresh copy of the template.

Solution 1Recommended

Save the Workbook in a Macro-Enabled Format

To preserve macro functionality, the family tree template must be saved as a macro-enabled workbook rather than a standard Excel file.

Standard Excel files (.xlsx) cannot store VBA code. If you accept the warning dialog to save it as a macro-free workbook, all macros required to generate the family tree are permanently deleted.

1
Download a fresh template

If your previous macros were removed, download a new copy of the Family Tree Generator template from the Office template library.

2
Open the Save As dialog

Click on 'File' in the top-left corner, select 'Save As', and choose your preferred saving location.

3
Select the correct file type

In the 'Save as type' drop-down menu, change the format from 'Excel Workbook (*.xlsx)' to 'Excel Macro-Enabled Workbook (*.xlsm)'.

4
Enable macros on reopening

Click 'Save'. The next time you open this file, look for a security warning below the ribbon and click 'Enable Content' before clicking the Create Family Tree button.

Save the Workbook in a Macro-Enabled Format
Alternative Supported Formats: You can also save the file as an Excel Macro-Enabled Template (*.xltm) or an Excel Binary Workbook (*.xlsb) to keep the VBA macros intact.
Seamless VBA & Macro Support

Easily Manage Macro-Enabled Spreadsheets with WPS Office

WPS Office provides robust compatibility with Microsoft Excel templates, including macro-enabled files (.xlsm). You can reliably open, edit, and save your Family Tree Generator without losing VBA functionality.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and click on 'Spreadsheet' to access the spreadsheet application.
  2. 2. Open the Template: Navigate to 'Menu' > 'Open' and select your Family Tree Generator .xlsm file.
  3. 3. Enable Macros: If prompted by a security warning at the top of the workspace, click 'Enable Macros' to allow the script to execute.
  4. 4. Save Progress: When finished, click 'Menu' > 'Save As' and ensure the format remains set to 'Microsoft Excel Macro-Enabled Workbook (*.xlsm)'.
Fully compatible with Microsoft Office's .xlsm, .xlsb, and .xlsx file formats.Reliable VBA and Macro environment to run automated templates seamlessly.Lightweight, fast-loading interface with familiar spreadsheet tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel macro disappear after saving?

If you save a macro-enabled workbook as a standard Excel file (.xlsx), the software automatically removes all VBA macros to comply with the format's strict security standards. You must save it as an .xlsm file to retain them.

How do I get my family tree macros back if I accidentally saved as .xlsx?

Once a file is saved in the .xlsx format, its macros are permanently deleted and cannot be restored. You will need to download a fresh copy of the Family Tree Generator template and manually copy your entered data over to the new file.

How do I enable macros in a downloaded family tree template?

When you open the downloaded file for the first time, a yellow Message Bar will appear at the top of the worksheet with a shield icon. Click the 'Enable Content' button to explicitly allow the macros to run on your computer.