PC Review


Reply
Thread Tools Rate Thread

Copy&Paste variable range based on cell value

 
 
=?Utf-8?B?VGhvbWFz?=
Guest
Posts: n/a
 
      27th Jul 2007
Hi community,

Worksheet 'Dump' contains data in column A:G, variable number of rows. The
data is sorted by column D descending (values being "c", "b", "a").
I want to copy & paste only the rows with "c"'s and "b"'s
So, I need a macro that
- finds the last row of my needed range (as soon the macro finds an "a" in
cell Dx)
- selects the range (column A,B, row 1 to last needed row) and copies it
to a worksheet "Comments" to cell A1

Thanks a bunch in advance for your help
Thomas
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paste copied data to specified sheet based on range - variable iss fishy Microsoft Excel Programming 6 1st Apr 2010 02:00 PM
Selecting Range Based on Cell Content then Copy/Paste to New Sheet,Looping pwk Microsoft Excel Programming 2 26th Sep 2009 02:18 PM
How to Copy and Paste a variable range =?Utf-8?B?SUs=?= Microsoft Excel Programming 1 29th Aug 2006 09:04 PM
Finding a named range based on cell value and copy/paste to same sheet? Simon Lloyd Microsoft Excel Programming 1 11th May 2006 11:25 PM
Copy/paste range variable between workbooks =?Utf-8?B?SmltNzM=?= Microsoft Excel Programming 2 14th Jan 2005 08:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:09 AM.