Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Find Range for Pasting of Records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kou Vang - 25 Jan 2006 18:45 GMT
I am pasting data into inserted columns.  How do I figure out the range of
the records that I have so I know when to stop pasting down the new inserted
columns?

A  B  C  D  E
           x  x
           x  x
           x  x
           x  x
           x  x

I would have to count column "D" and find the corresponding last row with
data correct?
Toppers - 25 Jan 2006 21:58 GMT
lastrow=Cells(rows.count,"D").End(xlup).row will give you the last row in
column D

> I am pasting data into inserted columns.  How do I figure out the range of
> the records that I have so I know when to stop pasting down the new inserted
[quoted text clipped - 9 lines]
> I would have to count column "D" and find the corresponding last row with
> data correct?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.