Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default 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
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
Missing sum bottom of excel window Raj Bartakke Excel Worksheet Functions 9 January 27th 09 01:13 AM
Can't get to bottom right corner of window to resize? I figured it Michael NoNOTooMuch Excel Discussion (Misc queries) 1 April 14th 08 11:06 PM
My curser does not move the window at the bottom guyogden Excel Discussion (Misc queries) 1 October 4th 07 12:30 PM
split window stop scroll in bottom ? rob merritt Excel Programming 0 May 18th 04 02:47 PM
How does one add text or icon to bottom of Excel Window Jim Bassett[_3_] Excel Programming 1 January 12th 04 07:16 PM


All times are GMT +1. The time now is 07:57 PM.

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

About Us

"It's about Microsoft Excel"