Assistance Needed with Python and Openpyxl for Excel Formatting Issue

TONG King Kwan (230015661) 0 Reputation points
2025-02-25T05:41:18.7233333+00:00

Hello,

I am currently working on a Python project where I am creating an interface to input data into an Excel file. To ensure that the formatting within the Excel file remains unchanged, I am using the Openpyxl library. However, after saving the file, I encounter the following prompt in Excel:
error2.png
error1.png

code12.txt
Could you please advise on how to resolve this issue?

Thank you in advance for your help.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,295 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.