LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
billy boy
 
Posts: n/a
Default have sheets 2 and 3 scroll the same when scrolling sheet 1?

Dave, I want to thank you for your help so far.
I did copy and paste the formula you sent me and changed the sheet names to
there correct names in both spots. After all is copied and changed, do I x
out of the box? And or how do I activate it. Also on top, it has 2 drop down
boxes, one box has general in it and the other has declarations.

"Dave Peterson" wrote:

You can try this against a copy of your workbook (just in case....).

Open excel and open your workbook.
rightclick on the excel icon to the left of the File|Edit|view|... menubar.

select view code.
Paste this code (I like it better than the first suggestion) into the codewindow
that just opened up (righthand side window)

Option Explicit
Dim CurRow As Long
Dim CurCol As Long
Dim ActCellAddr As String
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Select Case LCase(Sh.Name)
Case Is = "sheet1", "sheet2", "sheet4"
If CurRow 0 Then
With Application
.EnableEvents = False
.Goto Sh.Cells(CurRow, CurCol), scroll:=True
Sh.Range(ActCellAddr).Select
.EnableEvents = True
End With
End If
End Select
End Sub
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Range)
Select Case LCase(Sh.Name)
Case Is = "sheet1", "sheet2", "sheet4"
CurRow = ActiveWindow.ScrollRow
CurCol = ActiveWindow.ScrollColumn
ActCellAddr = ActiveCell.Address
End Select
End Sub

Change the names in this line:
Case Is = "sheet1", "sheet2", "sheet4"
to match the sheets that should be affected -- in both spots, too. And make
sure you use all lower case letters.







billy boy wrote:

Dave, thanks for your response. I do not know anything about macros, and I
was reading about them and still lost. Thanks again, I will keep trying.

"billy boy" wrote:

Is it possible to have worksheets scroll at the same time? For example when
you scroll down to line 100 on sheet 1 and then you go to sheet 2 or 3 or 4
that sheet will be on line 100 also?


--

Dave Peterson



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autofilter Lists across Multiple Sheets, Maintain Correct Referenc EDSTAFF Excel Worksheet Functions 0 November 14th 05 03:27 PM
Sorting Data from 2 sheets, one sheet which is already sorted M. S. Excel Worksheet Functions 0 July 15th 05 06:42 PM
multiple sheets vs. 1 sheet Wally Excel Worksheet Functions 1 July 1st 05 02:49 AM
Lookup values in multipul sheets and show value in another sheet Kim Excel Worksheet Functions 3 June 17th 05 01:56 PM
linking multiple sheets to a summary sheet greg g Excel Discussion (Misc queries) 1 December 16th 04 07:43 AM


All times are GMT +1. The time now is 08:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"