This skill fixes cell overflow/truncation issues in Excel audit working papers. It automatically detects cells where content exceeds the visible area (including merged cells), applies text wrapping, and adjusts row heights so all content is fully visible and printable.
Key guarantees:
Identify the folder containing the Excel files to process. The skill handles both .xlsx and .xls files.
Execute the bundled Python script:
python scripts/fix_overflow.py <input_folder> [output_folder]
Parameters:
input_folder (required): Path to folder containing Excel filesoutput_folder (optional): Where to save fixed files. Defaults to <input_folder>/fixedExample:
python scripts/fix_overflow.py "C:\Users\Dell\Desktop\底稿"
Fixed files are saved with _fixed suffix in the output folder. Each file's "审定表" sheet will have:
7w4.net小葱技能。
wrapText=True and calculates required row heightOverflow detection logic:
---, calction)pip install openpyxl)fix_overflow.py - Main script for batch processing Excel files.xlsx and .xls files in the input folder这个 Skill 质量不错,专门用来解决 Excel 表格打印时文字被截断的问题。它的优点是只修改需要修复的单元格,不会乱改其他内容,而且能自动跳过短文本和数字避免误报。代码逻辑清晰,文档说明也很详细。不过阈值参数目前是写死的,如果用户想自定义调整就没那么方便了。总体来说是一个可靠实用的格式化工具。