Skip to main content

How to synchronize the same selected range across all worksheets in an Excel workbook?

Author Tech Support Last modified

When working with an Excel workbook, you may need to select the same range across multiple worksheets to compare or analyze data more efficiently. The methods below will help you quickly synchronize the selected ranges in all worksheets, making it easier to view the information consistently.

A screenshot of Sheet1 with a range selected A screenshot of Sheet2 with the same range selected

Select same ranges in all worksheets with Select All Sheets

Quickly synchronize all worksheets of the same range with one click

Using VBA code to synchronize worksheets


Select same ranges in all worksheets with Select All Sheets

You can make all worksheets select the same range in a workbook, as shown below:

1. Select a range in the active worksheet you want to select in all worksheets. For example the range "A103:C112".

2. Then right-click on the worksheet tab, and choose "Select All Sheets" from the menu.

A screenshot of the 'Select All Sheets' option in Excel's right-click menu

3. All the worksheets in the workbook will have the same range selected.

Note: to select same range in all worksheets with this way, it can only select the same range in all worksheets, but it cannot display all the selected ranges in the same position of the window.

Quickly synchronize all worksheets to the same range with one click

If you have installed "Kutools for Excel", you can use the "Synchronize Worksheets" feature to easily synchronize all worksheets to have the same range as follows:

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Activate a worksheet and select the range that you want to use.

2. Click Kutools Plus > Worksheet > Synchronize Worksheets.

3. And a prompt box pops out to remind you all worksheets within the workbook will have the same selected range and upper left cell.

A screenshot of the Synchronize Worksheets prompt box

4. Click OK, and all the worksheets have been synchronized. When you navigate between all worksheets, each worksheet will have the same range selected. See screenshots:

A screenshot of synchronized worksheets showing the same selected range A screenshot of synchronized worksheets showing the same selected range
A screenshot of synchronized worksheets showing the same selected range A screenshot of synchronized worksheets showing the same selected range
Note: If you check Don’t show me next time in the Synchronize Worksheets prompt box, this box will not appear when you apply this feature next time.

 

Tips:

Using VBA code to synchronize worksheets

Using the following VBA code, you can quickly make all worksheets to have same range selected and display the selected range in the same position of the window.

1. Select a range in one worksheet, and then click "Developer" > "Visual Basic", a new "Microsoft Visual Basic for applications window" will be displayed.

2. Click "nsert" > "Module", and then copy and paste the following code into the module:

VBA: synchronize all worksheets of a workbook

Sub SynchSheets()
'Update 20130912
Dim WorkShts As Worksheet
Dim sht As Worksheet
Dim Top As Long
Dim Left As Long
Dim RngAddress As String
Application.ScreenUpdating = False
Set WorkShts = Application.ActiveSheet
Top = Application.ActiveWindow.ScrollRow
Left = Application.ActiveWindow.ScrollColumn
RngAddress = Application.ActiveWindow.RangeSelection.Address
For Each sht In Application.Worksheets
    If sht.Visible Then
        sht.Activate
        sht.Range(RngAddress).Select
        ActiveWindow.ScrollRow = Top
        ActiveWindow.ScrollColumn = Left
    End If
Next sht
WorkShts.Activate
Application.ScreenUpdating = True
End Sub

3. Then click the "Run" button or "F5" key to execute the code, all of the worksheets will have the same range selected and display the selected ranges in the same position in the window.