• Bottom Scroll Row (2000)

    Author
    Topic
    #380942

    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

    Viewing 0 reply threads
    Author
    Replies
    • #639953

      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

      • #640081

        Ah, VisibleRange! Why didn’t I see that? Thanks! –Sam

    Viewing 0 reply threads
    Reply To: Bottom Scroll Row (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: