Solved

Getting the last row on screen

Posted on 2012-12-26
2
305 Views
Last Modified: 2012-12-26
Activewindow.scrollrow returns the first row visible on screen. How do I get the last row?
0
Comment
Question by:Saqib Husain, Syed
2 Comments
 
LVL 18

Accepted Solution

by:
krishnakrkc earned 500 total points
ID: 38721186
MsgBox Range(Split(ActiveWindow.VisibleRange.Address, ":")(1)).Row

Open in new window


Kris
0
 
LVL 43

Author Closing Comment

by:Saqib Husain, Syed
ID: 38721248
Activewindow.visiblerange

Thanks a lot
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Troubleshooting a Worksheet Graphic 8 25
Problem to With line 4 43
How to add the word OR to the front of each Excel value 4 36
Excel 2016 - Black cell borders 11 28
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now