IRONSOFTWAREHOME
Edit Excel Metadata from Python
from ironxl import *

# Load the Excel workbook
workbook = WorkBook.Load("sample.xlsx")

# Set author
workbook.Metadata.Author = "Your Name"
# Set comments
workbook.Metadata.Comments = "Monthly report"
# Set title
workbook.Metadata.Title = "July"
# Set keywords
workbook.Metadata.Keywords = "Report"

# Read the creation date of the Excel file
creation_date = workbook.Metadata.Created

# Read the last printed date of the Excel file
print_date = workbook.Metadata.LastPrinted

# Save the workbook with edited metadata
workbook.SaveAs("editedMetadata.xlsx")
pip install ironxl
Edit Excel Metadata from Python

Edit Excel Metadata from Python

Editing Excel metadata programmatically with IronXL for Python allows developers to update workbook properties - such as author, title, subject, or custom metadata fields - without manual interaction. This is particularly useful in automated workflows, large-scale data processing, or integration scenarios where metadata-driven solutions are required.

IronXL makes this process efficient by supporting popular Excel formats including XLSX, XLS, and CSV. This functionality minimizes manual effort and ensures accuracy for teams handling reporting, auditing, or metadata-driven applications. It simplifies the connection between Excel files and backend systems, enabling dynamic metadata updates that scale effectively in real-world Python environments.

Explore How to Edit Workbook Metadata with IronXL for Python

Ready to Get Started?

Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required