Height of an Excel range (in cells)??

Posted on 2000-01-31
Medium Priority
Last Modified: 2006-11-17

I am trying to copy named Excel ranges from one worksheet and paste them on another worksheet.

The pasted ranges have to appear contiguously one below the other. I surmise that for this I  have to be able to move the active cell of the destination worksheet to the row after the last-pasted range, then do the next paste. But try as I might, I cannot find a way to do this. A function giving the height of a range in cells would be ideal, but I can only find one that gives the height in points. No use.

Learned experts, I appeal to thee for help.

Thanks in advance

Question by:lakshman
1 Comment

Accepted Solution

Lewy earned 150 total points
ID: 2466345
Try this:

Cells(1, 1).Select
Selection.End(xlDown).Select 'find Last Row
LastRow = Selection.Row

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

623 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