Scripting Blog [archived]

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

How Can I Get a Total Page Count for All the Word Documents in a Folder?

(image) Hey, Scripting Guy! How can I get a total page count for all the Word documents in a folder?-- RA(image) (image) (image) Hey, RA. You’ll have to forgive the Scripting Guy who writes this column if he seems a little tired this morning. Yesterday was the first day of school in the Lake Washington School District and, as you might ...

How Can I Set the Document Orientation in Microsoft Word to Landscape?

(image) Hey, Scripting Guy! How can I set the document orientation in Microsoft Word to landscape?-- EE(image) (image) (image) Hey, EE. We think the script that we’re about to show you will answer your question; if it doesn’t, however, we’ll hope you cut us a little slack. After all, according to an exercise bike at the local gym, ...

How Can Tell Whether the NumLock Key is On or Off?

(image) Hey, Scripting Guy! How can I tell whether the NumLock key on a computer is on or off?-- KA(image) (image) (image) Hey, KA. You know, there are two problems with being a Scripting Guy. (Three, if you count the amount we get paid for doing this.) For one thing, you always have to be on your guard whenever Dean is around. Why? Well, ...

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 ...