Word.Tips.Net WordTips (Menu Interface)

Single Instance of Word

Every time you choose Word from the Start menu, a new instance of Word is opened on your system. It is possible to have five, six, or more instances of Word open, each editing away on their own files. You can do this because of both the way Word is written (as a program) and the features built into Windows. In some user environments, it may not be beneficial to have multiple instances of Word open at the same time. There is no simple way to prevent this, but you can create an AutoExec macro that will not allow multiple instances of Word 97 to be open. (You cannot do this in versions of Word previous to Word 97 because they do not allow inspection of the entire range of applications open on a system.) The following VBA macro will accomplish this very task.

Sub AutoExec()
thisinstance = Application.Tasks.Application.Caption
If thisinstance = "Microsoft Word" Then
    j = 0
        For Each i In Tasks
            If InStr(1, i.Name, thisinstance) > 0 Then
                j = j + 1
            End If
        Next i
    If j > 1 Then Application.Tasks.Application.Quit
    For Each i In Tasks
        If InStr(1, i.Name, "Microsoft Word") > 0 Then
            If i.Name <> thisinstance Then
            End If
        End If
    Next i
End If
End Sub

You should note that since this is an AutoExec macro (it automatically runs whenever Word is first started), there are some ways around it. If the user changes the Word command line (the one that actually starts Word) to use the /m switch, or if the user holds down the Shift key while Word is starting, then the AutoExec macro will not execute.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (390) applies to Microsoft Word 97.

Related Tips:

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!


Leave your own comment:

  Notify me about new comments ONLY FOR THIS TIP
Notify me about new comments ANYWHERE ON THIS SITE
Hide my email address
*What is 5+3 (To prevent automated submissions and spam.)
           Commenting Terms

Comments for this tip:

sadhu    12 Feb 2013, 04:08
I pointed the Word startup shortcut at a simple autohotkey macro:

if WinExist("Microsoft Word") {
} else {
   run, C:Program` Filesoffice97OfficeWINWORD.EXE

Now I never get multiple instances of Word, regardless of /m, macro protection, etc. (I am running WinXP Pro SP3 -- downgraded from Win7 Ultimate which was driving me crazy)


Our Company

Sharon Parq Associates, Inc.

About Tips.Net

Contact Us


Advertise with Us

Our Privacy Policy

Our Sites


Beauty and Style




DriveTips (Google Drive)

ExcelTips (Excel 97–2003)

ExcelTips (Excel 2007–2016)



Home Improvement

Money and Finances


Pests and Bugs

Pets and Animals

WindowsTips (Microsoft Windows)

WordTips (Word 97–2003)

WordTips (Word 2007–2016)

Our Products

Helpful E-books

Newsletter Archives


Excel Products

Word Products

Our Authors

Author Index

Write for Tips.Net

Copyright © 2016 Sharon Parq Associates, Inc.