I have a VBA program that reads all MS Word Document header, paragraph# & page# data to an array. The array is then written to a table in a new MS Word Document. Everything works fine, except that I obviously lose the text formatting when the data is passed via a string variable through the array.
A copy and paste loop for each individual paragraph works, but this method is extremely slow due to the number of times each document is called (especially on a 1,000 page document with roughly 10,000 paragraphs!).
How can I pass the text through the array, and maintain the original Document paragraph formatting (ie, bold text, font sizes, underline, etc, etc)?
A copy and paste loop for each individual paragraph works, but this method is extremely slow due to the number of times each document is called (especially on a 1,000 page document with roughly 10,000 paragraphs!).
How can I pass the text through the array, and maintain the original Document paragraph formatting (ie, bold text, font sizes, underline, etc, etc)?