Scripting Blog [archived]

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

How Can I Change the Paragraph Case in Microsoft Word?

(image) Hey, Scripting Guy! We have a bunch of Word documents that, for some reason, have been formatted using nothing but lowercase letters. We know exactly how we want to reformat these documents: all the headings (which are in 14-point type) should be in title case and all the other paragraphs should be in sentence case. Of course, it’s...

How Can I Insert a Manual Line Break into a Microsoft Word Document?

(image) Hey, Scripting Guy! How can I insert a manual line break into a Microsoft Word document?-- YR (image) (image) (image) Hey, YR. Greetings (saluti) from Rome, the Eternal City! You know, according to legend, Rome was founded thousands of years ago by the twins Romulus and Remus, along with their distant cousin (and oldest living ...

How Can I Search For and Modify Formatted Text in a Word Document?

(image) Hey, Scripting Guy! How can I search for formatted text in a Word document and then apply HTML tags to that text?-- ES (image) (image) (image) Hey, ES. You know, it’s funny that you should ask this question. Just last night at the dinner table, the Scripting Guy who writes this column finally had The Talk with the Scripting Son. ...

How Can I Change the Default File Save Format in Microsoft Word?

(image) Hey, Scripting Guy! I’m running Word 2007, but most of my colleagues are still running Word 2003. Is there a way I can use a script to change the default file type when saving documents in Word? I’d prefer that, by default, documents are saved in Word 2003 format rather than Word 2007 format.-- PJ (image) (image) (image) Hey, ...