Back to Blog
How-To Guide

How to Remove Author Name from Excel Files Step by Step

Every Excel file you create automatically records your name, your organization, and a trail of everyone who has ever edited the file. Before you share a spreadsheet externally, you need to know how to find and remove this personal information — otherwise you may be exposing employee names, internal usernames, and organizational details that were never meant to leave your company.

Privacy & Security Team
March 22, 2026
15 min read

What Author Metadata Is and Why It Matters

When you create an Excel file, the application automatically embeds your identity into the file's metadata. This happens silently in the background — you never see a prompt asking permission or confirming what information is being stored. The metadata includes your full name (as configured in your Office installation), your organization name, your Windows or macOS username, and in some cases your email address. Every time someone edits the file, their identity is added to the metadata as well, creating a cumulative record of everyone who has touched the document.

This information is stored in the file's XML properties and is accessible to anyone who receives the file. It takes only a right-click on Windows or a Get Info on Mac to see the author name. More technically inclined recipients can extract the full metadata payload by renaming the .xlsx file to .zip, extracting it, and reading the docProps/core.xml and docProps/app.xml files directly. Tools like MetaData Analyzer make this even simpler, revealing every piece of embedded information instantly.

Common Author Metadata Fields in Excel Files

Author

The person who originally created the file. Set from your Office account name or system username at the time of creation.

Last Modified By

The most recent person to save the file. Updates automatically every time the file is saved by a different user.

Company

Your organization name, pulled from your Office installation or volume license configuration.

Manager

An optional field sometimes populated from Active Directory or manually entered in file properties.

Content Created / Last Saved

Timestamps showing when the file was first created and last modified — can reveal working patterns and timelines.

Last Printed

The date and time the file was last printed, along with the username of the person who printed it.

Why does removing this information matter? Consider these scenarios: a freelance consultant sends a pricing spreadsheet to a client, and the author field reveals they created it by modifying a file originally authored by a competitor. A company shares a financial report externally, and the “Last Modified By” field exposes the name of an employee in a department that should not have been involved. A law firm sends a settlement calculation to opposing counsel, and the metadata reveals the name of the partner who drafted the initial figures, giving insight into the firm's internal decision-making structure. In every case, the author metadata reveals information that the sender did not intend to share.

Method 1: Remove Author via File Properties (Quick Method)

The fastest way to remove or change the author name is through Excel's built-in file properties panel. This method works in all modern versions of Excel and requires no technical knowledge. However, it only addresses the most visible author fields and may leave other metadata intact.

On Windows (Excel for Microsoft 365, Excel 2019, Excel 2021)

  1. 1
    Open the file in Excel and click File in the top menu bar.
  2. 2
    Click Info in the left sidebar. You will see a panel showing the file properties, including Author and Last Modified By on the right side.
  3. 3
    Right-click on the author name under “Related People” and select Remove Person. Repeat for “Last Modified By” if it shows a different name.
  4. 4
    To edit instead of remove: Right-click the author name and select Edit Property. You can change it to a generic name like “Company Name” or leave it blank.
  5. 5
    Save the file. The author name is now removed or changed in the file's properties.

On Mac (Excel for Mac)

  1. 1
    Open the file in Excel for Mac.
  2. 2
    Click File → Properties in the menu bar to open the document properties dialog.
  3. 3
    Go to the Summary tab. You will see fields for Author, Manager, Company, and other metadata.
  4. 4
    Clear the Author field and any other fields containing personal information. Click OK to apply.
  5. 5
    Save the file. Note that Excel for Mac does not have a built-in Document Inspector like Windows, so you may need additional steps to remove all metadata.

Limitation of the Quick Method

Editing file properties only changes the visible Author and Last Modified By fields. It does not remove author names embedded in comments, tracked changes, revision history, or custom document properties. For thorough metadata removal, use the Document Inspector method described below.

Method 2: Use Document Inspector (Recommended)

Excel's Document Inspector is the most thorough built-in tool for removing personal information from your files. It scans for author names across all metadata locations — not just the visible properties — and removes them in a single operation. This is the method Microsoft recommends, and it should be your default approach before sharing any file externally.

  1. 1
    Save a copy of your file first. Document Inspector changes are permanent and cannot be undone. Always keep a backup of the original file with its metadata intact.
  2. 2
    Go to File → Info → Check for Issues → Inspect Document.
  3. 3
    Check all inspection categories, especially:
    • Document Properties and Personal Information — catches Author, Last Modified By, Company, Manager, and other property fields
    • Comments and Annotations — comments contain the author name of the person who wrote them
    • Custom XML Data — may contain user identifiers from add-ins or integrations
    • Headers and Footers — sometimes auto-populated with the author name or file path containing usernames
  4. 4
    Click Inspect. Excel will scan the file and display a report showing what it found in each category.
  5. 5
    Click “Remove All” next to each category that contains personal information. Pay special attention to “Document Properties and Personal Information” which contains the author name.
  6. 6
    Click Close and save the file. Re-run the inspector to confirm all personal information has been removed.

After running Document Inspector, you can also enable a setting to automatically remove personal information every time the file is saved going forward. Go to File → Info and check “Remove personal information from file properties on save.” This is especially useful for template files that will be reused and shared repeatedly.

Method 3: Remove Author via Windows File Explorer

You can remove author information without even opening Excel by using Windows File Explorer's built-in properties editor. This method is convenient when you need to clean multiple files quickly or when you don't have Excel installed.

  1. 1
    Right-click the Excel file in File Explorer and select Properties.
  2. 2
    Click the Details tab. You will see the Author, Last Saved By, and other metadata fields.
  3. 3
    Click “Remove Properties and Personal Information” at the bottom of the Details tab.
  4. 4
    You have two options:
    • “Create a copy with all possible properties removed” — creates a clean copy while preserving the original
    • “Remove the following properties from this file” — lets you select specific properties to remove
  5. 5
    Select the properties you want to remove (check Author, Last Saved By, and any other personal fields) and click OK.

This method works well for the main document properties but, like the quick method, does not remove author names from comments, tracked changes, or revision history. It also does not work on macOS — Mac users should use the Excel properties dialog or a scripted approach instead.

Method 4: Remove Author with a VBA Macro

If you need to remove author information from files regularly, a VBA macro can automate the process. This is particularly useful in enterprise environments where employees need to sanitize spreadsheets before sending them to external parties. The following macro removes all common author-related metadata from the active workbook.

VBA — Remove Author Metadata
Sub RemoveAuthorMetadata()
    Dim wb As Workbook
    Set wb = ActiveWorkbook

    ' Clear built-in document properties
    On Error Resume Next
    wb.BuiltinDocumentProperties("Author").Value = ""
    wb.BuiltinDocumentProperties("Last Author").Value = ""
    wb.BuiltinDocumentProperties("Company").Value = ""
    wb.BuiltinDocumentProperties("Manager").Value = ""
    wb.BuiltinDocumentProperties("Subject").Value = ""
    wb.BuiltinDocumentProperties("Keywords").Value = ""
    wb.BuiltinDocumentProperties("Comments").Value = ""
    wb.BuiltinDocumentProperties("Category").Value = ""
    On Error GoTo 0

    ' Remove custom document properties
    Dim i As Long
    For i = wb.CustomDocumentProperties.Count To 1 Step -1
        wb.CustomDocumentProperties(i).Delete
    Next i

    ' Remove all cell comments (which contain author names)
    Dim ws As Worksheet
    Dim cmt As Comment
    For Each ws In wb.Worksheets
        For Each cmt In ws.Comments
            cmt.Delete
        Next cmt
    Next ws

    ' Set the flag to remove personal info on save
    wb.RemovePersonalInformation = True

    ' Save the workbook
    wb.Save

    MsgBox "Author metadata has been removed.", vbInformation
End Sub

To use this macro, press Alt+F11 to open the VBA editor, insert a new module (Insert → Module), paste the code, and run it with F5. The macro clears all author-related document properties, removes custom properties, deletes cell comments (which embed the author's name), and enables the “Remove personal information on save” flag for future saves.

Batch Processing Multiple Files

To process multiple files at once, wrap the core logic in a loop that opens each file in a directory. Here is the key modification:

Sub RemoveAuthorFromFolder()
    Dim folderPath As String
    Dim fileName As String
    Dim wb As Workbook

    folderPath = "C:\FilesToClean\"
    fileName = Dir(folderPath & "*.xlsx")

    Application.ScreenUpdating = False
    Do While fileName <> ""
        Set wb = Workbooks.Open(folderPath & fileName)

        On Error Resume Next
        wb.BuiltinDocumentProperties("Author").Value = ""
        wb.BuiltinDocumentProperties("Last Author").Value = ""
        wb.BuiltinDocumentProperties("Company").Value = ""
        wb.BuiltinDocumentProperties("Manager").Value = ""
        On Error GoTo 0

        wb.RemovePersonalInformation = True
        wb.Save
        wb.Close False

        fileName = Dir()
    Loop
    Application.ScreenUpdating = True

    MsgBox "All files processed.", vbInformation
End Sub

Method 5: Remove Author with Python (Cross-Platform)

For cross-platform automation or integration into CI/CD pipelines and document workflows, Python's openpyxl library provides full control over Excel metadata. This approach works on Windows, macOS, and Linux.

Python — remove_author.py
import sys
from openpyxl import load_workbook
from pathlib import Path

def remove_author_metadata(file_path: str) -> dict:
    """Remove author and personal metadata from an Excel file.

    Returns a dict of fields that were cleared.
    """
    wb = load_workbook(file_path)
    props = wb.properties
    cleared = {}

    # Clear author-related properties
    fields_to_clear = [
        'creator', 'lastModifiedBy', 'company',
        'manager', 'subject', 'keywords',
        'description', 'category'
    ]

    for field in fields_to_clear:
        current_value = getattr(props, field, None)
        if current_value:
            cleared[field] = current_value
            setattr(props, field, '')

    # Remove all comments (contain author names)
    for sheet in wb.worksheets:
        for row in sheet.iter_rows():
            for cell in row:
                if cell.comment:
                    cleared.setdefault('comments', []).append(
                        f"{sheet.title}!{cell.coordinate}"
                    )
                    cell.comment = None

    wb.save(file_path)
    return cleared

if __name__ == '__main__':
    for path in sys.argv[1:]:
        result = remove_author_metadata(path)
        print(f"Cleaned: {path}")
        for key, value in result.items():
            print(f"  {key}: {value}")

Install the library with pip install openpyxl and run the script as python remove_author.py file1.xlsx file2.xlsx. The script clears all author-related properties and removes comments, printing a summary of what was removed from each file.

You can integrate this into automated workflows easily. For example, add it as a pre-commit hook in a Git repository to ensure no Excel files with author metadata are ever committed, or trigger it in a document management system whenever a file is moved to an “external sharing” folder.

Preventing Author Metadata from Being Set in the First Place

Rather than removing author metadata every time you share a file, you can configure Excel to minimize the personal information it embeds. While you cannot prevent all metadata from being created, you can significantly reduce what gets stored.

Change Your Default Author Name

In Excel, go to File → Options → General. Under “Personalize your copy of Microsoft Office,” change the User name field to a generic name (e.g., your company name or department). This affects all new files going forward.

On Mac: Excel → Preferences → General → Personalize

Use the Remove Personal Information on Save Setting

Go to File → Info, open the Protect Workbook dropdown, and enable “Remove personal information from file properties on save.” This strips author data every time you save.

Note: This setting is per-file, not global. Apply it to template files so all new files created from them inherit the setting.

Group Policy for Enterprise Deployment

IT administrators can use Group Policy or Microsoft Intune to set a default author name across all Office installations in the organization. This ensures consistency and removes individual employee names from files by default.

The relevant policy setting is under User Configuration → Administrative Templates → Microsoft Office → Global Options → Customize → Default User Name.

Create Clean Templates

Create Excel template files (.xltx) with the author field pre-cleared and the “Remove personal information on save” flag enabled. Distribute these as the starting point for all files that will be shared externally.

Save templates to your organization's shared template directory so they appear in everyone's “New from Template” dialog.

Verifying That Author Information Has Been Removed

After removing author metadata, always verify the result. Do not assume the removal was successful — check the file yourself or use a tool to confirm that no personal information remains.

Quick Verification Methods

  • Right-click the file in File Explorer (Windows) or Finder (Mac) and check the file properties for any remaining author names
  • Open the file in Excel and go to File → Info to inspect the properties panel for any remaining personal information
  • Rename the .xlsx file to .zip, extract it, and read docProps/core.xml — look for <dc:creator> and <cp:lastModifiedBy> elements
  • Use MetaData Analyzer to scan the file and get a comprehensive report of all remaining metadata
  • Re-run Document Inspector in Excel to confirm all categories show "No items were found"

Places Where Author Names Can Hide

Even after clearing the main author field, personal names may persist in these locations. Check each one before sharing sensitive files.

  • Cell comments and notes: Each comment stores the author name of the person who created it
  • Tracked changes / revision history: Every change records who made it and when
  • Headers and footers: May contain &[File] or &[Path] codes that reveal usernames from file paths
  • VBA project properties: Macros store the author name in the VBA project metadata
  • External data connections: Connection strings may contain usernames or server paths with identifiable information
  • Named ranges and defined names: Names like “JohnSmith_Budget” persist even after the author field is cleared

Which Method Should You Use?

The best method depends on your situation. Here is a quick guide to help you choose.

ScenarioRecommended MethodWhy
Sharing a single file quicklyDocument InspectorMost thorough built-in option, catches metadata in all locations
Just need to change the author nameFile Properties (Quick Method)Fastest approach when you only care about the visible author field
Cleaning multiple files at onceVBA Macro or Python ScriptAutomatable, can process entire directories in seconds
Automated workflow / CI pipelinePython ScriptCross-platform, scriptable, integrates with any automation tool
Enterprise-wide policyGroup Policy + Clean TemplatesPrevents the problem at the source, no per-file cleanup needed
On macOS without ExcelPython ScriptWorks without Excel installed, handles .xlsx format natively

Key Takeaway

Author metadata in Excel files is one of the most common and most overlooked sources of unintended information disclosure. Every file you share carries your name and the names of everyone who has edited it — along with timestamps, organizational information, and potentially sensitive comments. The good news is that removing this information is straightforward once you know where to look. Make Document Inspector your default step before sharing any file externally, use automated scripts for batch processing, and configure your Office installation to minimize the personal information embedded in new files. A few seconds of metadata cleanup can prevent significant privacy and business risks.

Check Your Excel Files for Hidden Author Information

MetaData Analyzer instantly reveals all author names, timestamps, and personal information hidden in your Excel files. Scan your spreadsheets before sharing — no installation required.