View Single Post
 
Old 06-10-2022, 01:48 AM
w64bit w64bit is offline Windows 10 Office 2021
Novice
 
Join Date: Jan 2015
Posts: 19
w64bit is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
I would say it is better to have the styles.xml bloat than it is to have document.xml bloat.
So true. The code I posted was increasing document.xml 5 times, leaving styles.xml untouched.

The original file it's created in GUI Word 2003 as *.doc and saved in 2019 as *.docx.

Can something be added to Paul's code in order to "clean", "reset" or "recreate from scratch" the file styles.xml (and maybe document.xml) in order to keep only the necessary data and to purge unnecessary/duplicated data?
Reply With Quote