Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
This spreadsheet contains 5 sheets. Each sheet has more than 3000 rows of data. Can you tell me the VBA code: a. Which takes the vertical scroll all the way to the top. b. Where shold the code be located such that each time the user clicks on tab of the respective sheet then this code gets executed. So the user can scroll up and down in any sheet but whenever he goes to another sheet the vertical scroll is always at the top. Thanks. Luther ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Luther
Paste this in the ThisWorkbook module: Private Sub Workbook_SheetActivate(ByVal Sh As Object) ActiveWindow.ScrollRow = 1 Cells(1, 1).Select End Sub -- HTH. Best wishes Harald Followup to newsgroup only please "lothario" skrev i melding ... Hi, This spreadsheet contains 5 sheets. Each sheet has more than 3000 rows of data. Can you tell me the VBA code: a. Which takes the vertical scroll all the way to the top. b. Where shold the code be located such that each time the user clicks on tab of the respective sheet then this code gets executed. So the user can scroll up and down in any sheet but whenever he goes to another sheet the vertical scroll is always at the top. Thanks. Luther ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks guys.
This helped. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Mouse scroll failure when looking at code | Excel Worksheet Functions | |||
adding scroll bar to scroll on cell's content? | Charts and Charting in Excel | |||
Scroll horizontaly with mouse, create same system used to scroll . | New Users to Excel | |||
Can't scroll in code window | Excel Programming | |||
Logitech's newest mouse scroll fails in VBE code pane | Excel Programming |