Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
return top and bottom row in window
How can you return the top and bottom row in a window. Also is there a way to lock and unlock scrolling with mouse wheel Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
return top and bottom row in window
For displaying top row and bottom row in a screen, use the split screen
horizontal feature. See help files for deatails. "sunilpatel" wrote in message ... How can you return the top and bottom row in a window. Also is there a way to lock and unlock scrolling with mouse wheel Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
return top and bottom row in window
The subroutine below will return the row numbers of the top and bottom
visible rows in the active Window. '----------------------------------------------------- Sub TopAndBottomRow() Dim lngTopRow As Long Dim lngBottomRow As Long With ActiveWindow lngTopRow = .VisibleRange.Cells(1, 1).Row lngBottomRow = .VisibleRange.Cells(.VisibleRange.Rows.Count, 1).Row End With MsgBox "You can see rows " & lngTopRow & " to " & lngBottomRow End Sub '----------------------------------------------------- Steve Yandl "sunilpatel" wrote in message ... How can you return the top and bottom row in a window. Also is there a way to lock and unlock scrolling with mouse wheel Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Missing sum bottom of excel window | Excel Worksheet Functions | |||
Can't get to bottom right corner of window to resize? I figured it | Excel Discussion (Misc queries) | |||
My curser does not move the window at the bottom | Excel Discussion (Misc queries) | |||
split window stop scroll in bottom ? | Excel Programming | |||
How does one add text or icon to bottom of Excel Window | Excel Programming |