Hey, Scripting Guy! How Can I Check Spelling and Grammar in Microsoft Office Word?

Hey, Scripting Guy! I loved your last “Hey, Scripting Guy!” article about formatting paragraphs in a Microsoft Office Word document. What I need to do is a little bit more mundane, but for me much more important. I have a number of Word documents that are stored in a folder. Unfortunately, the person who wrote…

10

Hey, Scripting Guy! How Can I Format a Microsoft Word Paragraph?

Hey, Scripting Guy! I have really been enjoying the recent Windows PowerShell articles on the Script Center. I am wondering if it is possible to use Windows PowerShell to work with a Microsoft Office Word document. Specifically, what I would like to be able to do is to change the paragraph formatting and perhaps add…

3

Hey, Scripting Guy! How Can I Copy Specified Sections of an .RTF File to a New Word Document?

Hey, Scripting Guy! I have large files output by a reservoir simulator, files I use to predict oil, water and gas movements in hydrocarbon reservoirs. These files are finite-difference numerical simulators, and work by timestep (i.e. a time interval, usually about 90 days); when they have finished calculating, they chuck out a bunch of data…

1

Hey, Scripting Guy! How Can I Randomly Assign a Font to Characters in a Word Document?

Hey, Scripting Guy! I’ve come up with a way to imitate handwriting in a document, but I need some help. Because real handwriting is characterized by variability, I had the idea of using four slightly-different fonts, taken from my actual handwriting, and then randomly assigning a font to each letter. I think that would imitate…

3

How Can I Run a Macro After Opening Up Word?

Hey, Scripting Guy! How can I run a specified Word macro after opening Word using a script?– JD Hey, JD. You know, when they first tested the atomic bomb a number of physicists had legitimate fears that the bomb might set off an unstoppable chain reaction that would end up destroying the entire world. We…

1

How Can I Insert Text Into an Existing Microsoft Word Bookmark?

Hey, Scripting Guy! How can I insert text into an existing Microsoft Word bookmark?– WM Hey, WM. Believe it or not, this turned out to be the most difficult script the Scripting Guy who writes this column has ever had to create. Not because the script itself is very hard; as you’re about to see,…

2

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

Hey, Scripting Guy! How can I get a total page count for all the Word documents in a folder?– RA 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,…

3