Showing tag results for Microsoft Word

Jan 16, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Extract Specific Information From a Word Document and Then Use That Information to Rename the Document?

ScriptingGuy1

Hey, Scripting Guy! I have a bunch of Word documents in a folder. I need to open each document, read in some information from the first two lines, then use that information to rename the file. However, I’m having some trouble getting this to work. Can you help me?-- TG Hey, TG. As devoted readers of Hey, Scripting Guy! know, the Scripting Guy wh...

Scripting Guy!VBScriptOffice
Jan 11, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Tally All the Items in a Microsoft Word Document?

ScriptingGuy1

Hey, Scripting Guy! We have an application that repeatedly runs a test and writes the result of each test pass to a Microsoft Word document. Periodically I’d like to be able to use a script to tally up the number of times a test passed, the number of times a test failed, and the number of times a test failed to run. How can I write a script like ...

Scripting Guy!VBScriptOffice
Jan 9, 2008
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Reset the Revision Number of a Word Document to 1?

ScriptingGuy1

Hey, Scripting Guy! How can I reset the revision number of a Microsoft Word document back to 1?-- JL Hey, JL. You know, a lot of people think the Scripting Guys have lost their edge. “You guys used to write all these crazy scripts that used all these weird and wacky workarounds in order to solve problems,” they say. “Now you just write boring ol...

Scripting Guy!VBScriptOffice
Oct 4, 2007
Post comments count0
Post likes count0

Hey, Scripting Guy! How Can I Convert an Extension Number to an Actual Phone Number?

ScriptingGuy1

Our phone numbers are stored in Active Directory as extension numbers; however, we have a set of rules for converting those extensions to actual phone numbers. I’m writing a script to create an Outlook signature, but in that script I need to be able to convert an extension to a phone number. How do I do that?-- SM Hey, SM. You know, you are look...

Scripting Guy!scripting techniquesVBScript
Sep 29, 2007
Post comments count0
Post likes count0

How Can I Retrieve Field Values in a Microsoft Word Document?

ScriptingGuy1

Hey, Scripting Guy! I have a bunch of Word documents that include fields like LastSavedBy. How can I write a script that retrieves the current values for these fields?-- OS Hey, OS. You know, the other night the Scripting Guy who writes this column was watching TV when he saw an ad for a new Monopoly game: Monopoly, the Electronic Banking Editio...

Scripting Guy!VBScriptOffice