Browse by Tags

Tagged Content List
  • Blog Post: How Can I Change the User Information in Microsoft Office?

    Hey, Scripting Guy! How can I change the user information in Microsoft Office to match the user’s name as stored in Active Directory? -- SM Hey, SM. Back in the days when one of the Scripting Guys worked for a local university, every document in one department of 300+ users appeared to have been created...
  • Blog Post: How Can I Add a Blank Line Between the Existing Paragraphs in a Word Document?

    Hey, Scripting Guy! How can I add a line between the existing paragraphs in a Word document? -- GB Hey, GB. You’ll have to forgive us if we seem a little distracted this morning; shocking as this might seem, the Scripting Guy who writes this column may have made a monumental mistake. In yesterday...
  • Blog Post: How Can I Search a Word Document for All the Words in Double Brackets?

    Hey, Scripting Guy! How can I search a Word document for all the words in double brackets? For example, I need to find words like this: [[failed]]. I then need to save the words I find to a text file. -- PP Hey, PP. You know, one thing that seems to be true of the Scripting Guys is a willingness to...
  • Blog Post: How Can I Save Word Documents as Text Files By Using a Script?

    Hey, Scripting Guy! I have a series of Word files. I would like to open each of these files and save them as plain-text files. Is there a way to do that using a script? -- CG Hey, CG. Yes, you can do this quite easily with a script; in fact, with very few exceptions anything you can do within a Microsoft...
  • Blog Post: How Can I Search For and Modify Formatted Text in a Word Document?

    Hey, Scripting Guy! How can I search for formatted text in a Word document and then apply HTML tags to that text? -- ES 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...
  • Blog Post: 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, as...
  • Blog Post: Hey, Scripting Guy! How Can I Count How Many Images Are Embedded in Microsoft Word Documents?

    Hey Scripting Guy! You are not going to believe this. I have just been given the task of counting how many images are embedded in Word documents. The document folder, of course, has hundreds of documents. I am not sure why they want to know how many documents have embedded images, but I think it has...
  • Blog Post: Hey, Scripting Guy! Part 2: How Can I Update Many Office Word Documents at Once?

    ( Editor's note : This is part 2 of a two-part article originally intended for TechNet Magazine . Part 1 was published yesterday .) Now we arrive at the entry point to the script. The first thing to do in the entry point of the script is to create a collection of all the .doc and docx files in the...
  • Blog Post: How Can I Apply a Theme to a Microsoft Word Document?

    Hey, Scripting Guy! How can I apply a theme to a Microsoft Word document? -- YP Hey, YP. You know, things finally seem to be getting back to normal here in the Seattle area. The weather over this past weekend was in the mid-50s, which is where it should be this time of year. (Actually it should be...
  • Blog Post: How Can I Set Word’s Revision View Mode to Final?

    Hey, Scripting Guy! In Microsoft Word 2003, my documents open as Final Showing Markup . How can I change this so the default view is Final ? -- CD Hey, CD. You know, this is the first Hey, Scripting Guy! column we’ve written since returning from the Thanksgiving holiday. After four days of eating...
  • Blog Post: How Can I Close a Command Window with a Specific Title?

    Hey, Scripting Guy! How can I use WSH to close a command window with a specific title? -- MF Hey, MF. You know, some things are just really hard to believe, regardless of whether or not they happen to be true. For example, according to the Big Bang Theory the entire universe was created when a miniscule...
  • Blog Post: How Can I Add Centered Page Numbers to the Footer of a Word Document?

    Hey, Scripting Guy! I need to put the page number (centered) in the footer of a Word document. Do you have any suggestions on how I can do that? -- AW Hey, AW. To tell you the truth, the Scripting Guy who writes this column no longer makes suggestions. That’s because of an incident that occurred a...
  • Blog Post: How Can I Add a Page X of Y Footer to a Microsoft Word Document?

    Hey, Scripting Guy! I saw your article on adding page numbers to the footer of a Word document . However, I need my page numbers to be in the format "Page X of Y," where X is the current page number and Y is the total number of pages. How can I do that? -- JS Hey, JS. You know, several years ago the...
  • Blog Post: How Can I Insert a Manual Line Break into a Microsoft Word Document?

    Hey, Scripting Guy! How can I insert a manual line break into a Microsoft Word document? -- YR 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...
  • Blog Post: How Can I Open Word with the Cursor Positioned at the Start of a Specified Line?

    Hey, Scripting Guy! How can I open Word with the cursor positioned at the start of a specified line? -- PS Hey, PS. You know, we Scripting Guys have decided that we don’t like Microsoft Word anymore. How come? Well, as Scripting Guys we like to find solutions to seemingly-unsolvable problems: any...
  • Blog Post: Hey, Scripting Guy! How Can I Convert Word Files to PDF Files?

    Hey, Scripting Guy! I have a folder full of Word documents. The pointy-headed boss (PHB) is being particularly obtuse this week, and has decided that he would like to have all the Word documents turned into PDF files so everyone can view them. This is despite the fact that a couple of months ago he had...
  • Blog Post: How Can I Add a Hyperlink to a Word Document?

    Hey, Scripting Guy! How can I add a hyperlink to a Word document? -- BA Hey, BA. Interesting question; in thinking about common tasks for scripting Microsoft Office applications we never even considered adding a hyperlink to a document. (Needless to say, that’s why we rely on people like you to let...
  • Blog Post: Hey, Scripting Guy! Part 1: How Can I Update Many Office Word Documents at Once?

    ( Editor's note : This is part 1 of a two-part article originally intended for TechNet Magazine . Part 2 will be published tomorrow.) Little clouds of dust rise from the ground like miniature tornados carrying powdery sand that drifts along lazily on a nearly still breeze. The tires that support the...
  • Blog Post: Use PowerShell to Discover Network Information from Shares

    Summary : Guest blogger, Niklas Goude, shows how to use Windows PowerShell to discover valuable network information from shares and file metadata. Microsoft Scripting Guy, Ed Wilson, is here. We now come to Part 3 of Security Week with another guest blog by Niklas Goude. Niklas Goude is a Security...
  • Blog Post: Use PowerShell to Add AutoCorrect Entries to Word

    Summary : Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to add AutoCorrect entries to Word. Microsoft Scripting Guy, Ed Wilson, is here. Cool. Tonight is the Microsoft TechEd 2012 closing party in Orlando, Florida. This year the party is at Island of Adventure, and the...
  • Blog Post: How Can I Add Multiple Tables to a Word Document?

    Hey, Scripting Guy! How can I add multiple tables to a Word document? -- KH Hey, KH. You know, if the Scripting Guys have one failing (hey, we said if ) it’s this: we’re simple guys with simple tastes. Create a Microsoft Word document with multiple tables? No, sir; that’s not for us, not at all. One...
  • Blog Post: Hey, Scripting Guy! How Can I Tally All the Items in a Microsoft Word Document?

    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...
  • Blog Post: Hey, Scripting Guy! How Can I Insert a Date Field in Office Word?

    Hey, Scripting Guy! How can I insert a field in a Word document that shows the date two weeks from today? -- HO Hey, HO. As you’re reading this the Scripting Guy who writes this column is no doubt sitting in the bowels of the King County Superior Court, waiting to hear whether he actually...
  • Blog Post: How Can I Change the Paragraph Case in Microsoft Word?

    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...
  • Blog Post: How Can I Set the Document Orientation in Microsoft Word to Landscape?

    Hey, Scripting Guy! How can I set the document orientation in Microsoft Word to landscape? -- EE 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...