Scroll Multiple Sheets in Excel 2010


I'm wondering if there is a way to scroll to the same place over multiple sheets in EXCEL.  I have about 25 sheets each week that I would like to start at the same place.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saqib Husain, SyedEngineerCommented:
Have you tried

drozeveldAuthor Commented:
Thank you for responding, but I guess I need to better explain what I would like to be able to do.

When I have all the worksheets highlighted in my workbook, I would like to scroll the pages so that cell A1 is showing when I go to each page, which is what can be done with Ctrl-PgUp and Ctrl-PgDn.
Saqib Husain, SyedEngineerCommented:
You want to switch worksheets and when you do that you need the cursor to move to A1 of that sheet?
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

drozeveldAuthor Commented:
Yes, but I don't want to press Ctrl-Home on every sheet.
drozeveldAuthor Commented:
Actually the cell that I want to be able to see is F31.  Some worksheets are showing A1, some are showing where the cursor is at in F31.  If I scroll to the bottom of the worksheet on the first page, then I want all the other worksheets to be in the same place so that I can view those cells too.
Saqib Husain, SyedEngineerCommented:
Are you familiar with macros?

Enter this code in the "Workbook" module of your workbook.
I do think this could be a nuisance at times.

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
End Sub

Open in new window

Saqib Husain, SyedEngineerCommented:
Ok now this is a different requirement which came before I posted a response to the previous comment.
byundtMechanical EngineerCommented:
The following macro (which must be installed in the ThisWorkbook code pane) will synchronize the scroll row, scroll column and active cell as you switch from one worksheet to another.
'Put the following code in ThisWorkbook code pane. It won't work at all if installed anywhere else
Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
Dim ws As Worksheet
Dim iCol As Long, iRow As Long
Set ws = ActiveSheet
If ws.Parent Is ThisWorkbook Then
    Application.EnableEvents = False
    Application.ScreenUpdating = False
    iRow = ActiveWindow.ScrollRow
    iCol = ActiveWindow.ScrollColumn
    Application.Goto ws.Range(ActiveCell.Address)
    ActiveWindow.ScrollRow = iRow
    ActiveWindow.ScrollColumn = iCol
    Application.EnableEvents = True
End If
End Sub

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
drozeveldAuthor Commented:
This is already in ThisWorkbook:

Public Sub SaveAsA1()
    ThisFile = Range("A1").VALUE
    ActiveWorkbook.SaveAs Filename:=ThisFile
End Sub

Do I remove that?
byundtMechanical EngineerCommented:
Whether or not you move (or delete) SaveAsA1 is up to you. It can remain in its current location and will not interfere with the Workbook_SheetDeactivate event sub I suggested.  

That said, it is considered good practice to put only event-driven subs in class modules like ThisWorkbook. If you follow this good practice, you would move SaveAsA1 into a regular module sheet (use Insert...Module to create one if you don't already have a Module1, Module2, etc.).

If you make this move, you will see the macro listed as "SaveAsA1" in the ALT + F8 macro selector rather than "ThisWorkbook!SaveAsA1"
drozeveldAuthor Commented:
How do I make sure that your macro only goes into this workbook?
byundtMechanical EngineerCommented:
Did you try the code?

I anticipated your question with statement 6, and it will only synchronize worksheets in the workbook containing the macro.
drozeveldAuthor Commented:
It did not work like I am hoping to see it work.

I had the file that I want it to work on open, found ThisWorkbook by going to Developer and opened Visual Basic.

Tried it - didn't work.  Closed that file and opened another file to see if the macro I referred to above was in another workbook, because I'm not sure what it is trying to do there and found that it was and also the one you gave me was there too....therefore, I'm not wondering if I inserted it correctly.
byundtMechanical EngineerCommented:
When you open the workbook, you must enable macros. The code won't work if you don't. Try closing the workbook and then reopening it. You should see a warning about macros.

If that approach still isn't working for you, please post your workbook. I'll make sure the code is installed correctly.

drozeveldAuthor Commented:
Sometimes...when you review your own work, you find that you put the macro in ThisWorkbook of your personal.xls files, and not just the workbook that you had open.  When you review this, and move the macro to the correct place - it works EXACTLY like you want it to.

Thank you!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.