Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Find Range for Pasting of Records

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Find Range for Pasting of Records

lastrow=Cells(rows.count,"D").End(xlup).row will give you the last row in
column D

"Kou Vang" wrote:

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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find unique records frankfurtjoe Excel Discussion (Misc queries) 1 May 19th 09 01:30 PM
Find all records PerplexedinKY Excel Discussion (Misc queries) 4 January 24th 07 09:13 PM
FIND LIKE RECORDS JHL Excel Discussion (Misc queries) 1 January 30th 06 02:40 PM
Find name and return records Amanda Excel Programming 4 January 27th 06 04:01 PM
Pasting records into Excel with QueryTables Saul Margolis Excel Programming 3 October 6th 04 09:43 AM


All times are GMT +1. The time now is 11:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"