Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Search For (and Reformat) Highlighted Text in a Word Document?

(image) Hey, Scripting Guy! How can I find text in a Word document that has been highlighted in a particular color (say, turquoise), and then both remove the highlight and change the font color of that text to something else (say, blue)? I’d be extremely chuffed if you can solve this one!-- KB(image) (image) (image) Hey, KB! Blimey! You ...

How Can I Get a List of the Unique Words Used in a Microsoft Word Document?

(image) Hey, Scripting Guy! How can I get a list of the unique words used in a Microsoft Word document?-- RK(image) (image) (image) Hey, RK. Funny you should mention unique words. Last Saturday the Scripting Coach’s baseball team played in the city championship. Despite the importance of the game the team was missing two key players, and...

How Can I Add Multiple Tables to a Word Document?

(image) Hey, Scripting Guy! How can I add multiple tables to a Word document?-- KH(image) (image) (image) Hey, KH. You know, if the Scripting Guys have one failing (hey, we said if) it’s this: we’re simple guys with simple tastes. Create a Microsoft Word document with multiple tables? No, sir; that’s not for us, not at all. One table...