Showing tag results for Microsoft Word

May 30, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Search For a Specific Style in a Folder Full of Microsoft Word Documents?

ScriptingGuy1

Hey, Scripting Guy! I have a folder with scores of Word documents in it. What I need to do is open each document, copy anything that uses the Heading 1 style, and then write that information (the file name and anything that uses the Heading 1 style) to a single text file. Is there a way to do this using a script?-- DN Hey, DN. You know, there ha...

Scripting Guy!VBScriptOffice
May 8, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Copy a Portion of a Microsoft Word Document to a New Microsoft Word Document?

ScriptingGuy1

Hey, Scripting Guy! How can I find some text in a Microsoft Word document, copy the rest of the document from that point on, then paste the copied text into a brand-new Word file?-- CB Hey, CB. You know, it’s kind of a melancholic day here at Scripting Guys world headquarters. That’s because the Juanita Rebels were defeated 10-8 in the opening r...

Scripting Guy!VBScriptOffice
Apr 24, 2008
Post comments count0
Post likes count0

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

ScriptingGuy1

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 handwriting a littl...

Scripting Guy!VBScriptOffice
Feb 25, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Find a Word in a Document and Change the Background Color of the Paragraph Where That Word Appears?

ScriptingGuy1

Hey, Scripting Guy! I have a bunch of reports and log files that are saved as Microsoft Word documents. I’d like to be able to search for a specific word in one of these documents (e.g., the word “Failed”) and then change the background color of any paragraph that the target word appears in. How can I do that?-- XD Hey, XD. You ...

Scripting Guy!VBScriptOffice
Feb 5, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Count the Number of Sentences and Paragraphs in an Office Word Document?

ScriptingGuy1

Hey, Scripting Guy! I just read your article about getting Word documents statistics and would like to know if there is any way of getting the number of sentences and paragraphs per document.-- RLP Hey, RLP. To be perfectly honest, now that the Super Bowl is over the Scripting Guy who writes this column is more relieved than he is happy. The Scr...

Scripting Guy!VBScriptOffice