Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Bottom Scroll Row (2000)

    ActiveWindow.ScrollRow returns the row number that appears at the top of the active window. How can I get the row number that appears at the bottom of the active window? TIA --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  2. #2
    3 Star Lounger Jim Cone's Avatar
    Join Date
    Feb 2002
    Location
    Portland, Oregon, USA
    Posts
    238
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Bottom Scroll Row (2000)

    Sam,

    This ought to do it....

    Sub WhichRowAtBottom()
    Dim LastVisRow As Long

    With ActiveWindow.VisibleRange
    LastVisRow = .Rows(.Rows.Count).Row
    End With
    MsgBox LastVisRow
    End Sub

    Regards,

    Jim Cone
    San Francisco, CA

  3. #3
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Bottom Scroll Row (2000)

    Ah, VisibleRange! Why didn't I see that? Thanks! --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •