Using the StyleRef field for chapter headings in Microsoft Word 2013

Book Fan

CC 2.0 image courtesy khushboo.jain on Flickr

Documents that contain multiple headings can be hard to read without context as to where you are in the document. To give readers a visual clue, add dynamic text to page headers that reflect the most recent chapter heading in use.

To dynamically add page header text, use the Quick Parts StyleRef field to reference and display title headings that exist in the document. To see how this can be accomplished, follow the steps in the section below or watch this video tutorial which walks through the process: https://www.youtube.com/watch?v=bUipPzIHKkg

Read more of this post

Advertisements

Use Shift+F3 To Change Case In Microsoft Word

If you work in Microsoft Word a lot you may need to change the capitalization or case of text you are working with.

To quickly change the case of selected text, use this keyboard shortcut to switch between:

  • lowercase
  • UPPERCASE
  • Capitalize Each Word

To do so, select the text to change and press SHIFT + F3 to toggle between the three settings.

Note: This function also works on Microsoft PowerPoint.

WordShiftF3

Windows Developer Day: October 10, 2017

Windows 10 Developer Day

On Tuesday, October 10, 2017 at 9:30 AM PDT Microsoft will host a Windows Developer Day livestream featuring a keynote speech from Kevin Gallo, CVP of Windows Developer Platform.

Gallo and the Windows engineering team will discuss advances and new features for software development in the Fall Creators Update. Also featured is an informative Q&A panel along with several deep-dive streaming sessions.

Although the agenda has not been set, when registering you can choose to receive updates for your area of interest:

RSVP for Windows Developer Day—Fall Creators Update today!

Searching for multiple words within a PDF

Bee

CC 2.0 image courtesy Paul van de Velde on Flickr

Problem

While editing a PDF document, I was trying to locate multiple words that needed to be removed, Instead of searching for each word individually, I thought there must be a simpler way. Luckily, there is.

Read more of this post

Enabling Telnet Client in Windows 10

The Telnet Client is a great tool for developers and administrators to help manage and test network connectivity. However, the Telnet Client application is disabled by default in Microsoft Windows 10. Attempts to use it before activation returns the error message ’not recognized as an internal or external command, operable program or batch file’.

Telnet00

The following step-by-step shows you how to enable Telnet.

Read more of this post

More zombie process destroying scripts

Kill Your Zombie Process I wrote an article a few months back entitled Killing zombie Google Chrome processes. In the post, I talk about the fact Google Chrome can spin off multiple processes during a browsing session. When you close the browser window sometimes Chrome can leave behind several zombie processes in the Windows Task Manager.

Within the article, I presented two ways to solve this problem. I showed a PowerShell command and I also mentioned a fix through a batch script I created. I uploaded a copy of the Stop Google Chrome Processes batch script file to the TechNet Gallery.

Since then, I have created a similar batch file for other web browsers including Firefox, Explorer, Edge and Opera. All can be downloaded from the TechNet Gallery via the links below.

Killing zombie Google Chrome processes

This article is also available on the Microsoft TechNet Wiki.

When using the Google Chrome browser with of mix of normal and incognito windows, long-running sessions with multiple tabs can sometimes chew up a lot of memory. It certainly does not help either that Google Chrome spawns 10+ processes for any given browsing session. So when it comes time to close these browsing sessions it is not uncommon for Chrome to leave behind several zombie processes in the Windows Task Manager.

ChromeProcesses01

To terminate these remaining processes you can right-click them in the Task Manager and select End task. However, there is a faster way using either a PowerShell command or Windows Batch (.bat) file. Let’s examine both ways.

PowerShell

Within PowerShell, there is the Stop-Process Cmdlet. This will allow you to terminate all processes in one command. You can kill the process either by process name (minus the file extension) or by process ID. Since we want to end all Chrome processes, we would use the -processname parameter combined with the process name:

Stop-Process -processname Chrome

You can enter this command into the PowerShell window or save it to a PowerShell script (.ps1) file that you can run from the Windows PowerShell ISE.

Batch File

Another, simpler, way is to create a Batch (.bat) file. A batch file is a script used in Windows. It lists commands that can be run using the command line interpreter when the file is either called from the Command Prompt or double-clicked.

To stop processes, we can execute the taskkill command:

taskkill /F /IM chrome.exe /T

This command will use these parameters:

  • /F: Identifies that process(es) be forcefully killed.
  • /IM: Identifies the image name of the process to be killed
  • /T: Kills all child processes along with the parent process, commonly known as a tree kill
    If we combine this with a For Loop we can see the number of processes being terminated:

ChromeProcesses02

When run, the script will pause to display all terminated processes including the associated process ID (PID). As well, the total number of Google Chrome processes removed is also listed.

Conclusion

In this article, we saw how we can use both a PowerShell command and a Batch file to terminate hanging or zombie Google Chrome processes. Try either method if you have problems with Chrome processes remaining on your machine after all sessions are closed.

Script

Download a copy of this Batch script file from the TechNet Gallery:

References