Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Turning Off Track Changes without Unsharing.
Written by Allen Wyatt (last updated April 6, 2024)
This tip applies to Excel 97, 2000, 2002, and 2003
Excel allows you to track changes made to a workbook, as described in other issues of ExcelTips. When you turn on change tracking, Excel requires that you share the workbook. After all, change tracking is meant to be used in an environment where multiple users access and change the same workbook.
At some time you may want to turn track changes off, so that they are no longer noted in the workbook. If you turn it off, Excel assumes you also want to stop sharing the workbook, so it automatically turns off sharing. If you want to still continue sharing—without tracking—then you may wonder what your options are.
Unfortunately, Excel is rather confusing when it comes to sharing a workbook and tracking changes. The two features are intimately related to each other.
Is it any wonder that all this is confusing? The simplest way to turn off track changes and still have a workbook shared is to turn off track changes, then save the workbook. This saves it in single-user mode. You can then share the workbook and again save it. Four simple steps (turn off tracking, save workbook, share workbook, and save workbook) and you are exactly where you want to be. Remember, however, that if you choose Tools | Track Changes | Highlight Changes, it will appear that track changes is still turned on. Ignore the check box and click Cancel; it is not turned on at this point.
The only way to achieve the desired outcome faster is to use a macro. The following macro automates the steps just discussed:
Sub KeepShared() Dim sFile As String Dim sMsg As String Dim iUsers As Integer Dim iAnswer As Integer With ActiveWorkbook If .MultiUserEditing Then sFile = .Name iAnswer = vbYes iUsers = UBound(.UserStatus) If iUsers > 1 Then sMsg = sFile & " is also open by " & _ iUsers - 1 & " other users:" For x = 2 To iUsers sMsg = sMsg & vbCrLf & .UserStatus(x, 1) Next sMsg = sMsg & vbCrLf & vbCrLf & "Proceed?" iAnswer = MsgBox(sMsg, vbYesNo) End If If iAnswer = vbYes Then .ExclusiveAccess .SaveAs Filename:=sFile, AccessMode:=xlShared End If End If End With End Sub
The macro starts by checking the .MultiUserEditing property to make sure that the workbook is shared. If it is, then the macro checks to see if the workbook is being used by multiple people at the present time. If it is, then you are prompted whether you want to continue. If you do (or if there are not multiple users with the workbook open at the current time), then the workbook is set for exclusive access (single user) and then saved in shared mode. Setting the workbook for exclusive access turns off the track changes feature, as well.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2511) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Turning Off Track Changes without Unsharing.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
Outlining, a feature built into Excel, can be a great way to help organize large amounts of data. This tip provides an ...
Discover MoreYou can easily add a button to your worksheet that will allow you to run various macros. This tip shows how easy it is.
Discover MoreDrop-down lists are handy in an Excel worksheet, and you they can be even more handy if a selection in one drop-down ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments