Skip to main content

How to synchronize all worksheets of the workbook with same range selected in Excel?

When we use an excel workbook, sometimes, we need to select the same ranges of multiple worksheets in a workbook and synchronize them to look at the information easily and conveniently. The following methods will make you synchronize worksheets to have the same ranges in a workbook quickly and easily.

doc-same-range-worksheets-5 doc-same-range-worksheets-6

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 to have the same  range selected in a workbook as follows:

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

2. Then right-clicks on the worksheet tab, and choose Select All Sheets from the menu. See screenshot:

doc-same-range-worksheets-1

3. All the worksheets in the workbook will have the same range be 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: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Get it Now

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

2. Click Enterprise > Worksheet Tools > Synchronize Worksheets, see screenshot:

doc-same-range-worksheets-3

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.

doc-same-range-worksheets-4

4. Then click OK, all the workseets have been synchronized, when you navigating between all worksheets, each worksheets have the same range will be selected. See screenshots:

doc-same-range-worksheets-5 doc-same-range-worksheets-6
doc-same-range-worksheets-7 doc-same-range-worksheets-8
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 Insert > Module, and then copy and paste the following codes in 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 doc-same-range-worksheets-2 button or F5 key to execute the code, all of the worksheets will have the same range be selected and display the selected ranges in the same position of window.

Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations