PC Review


Reply
Thread Tools Rate Thread

Copy Row to Another Sheet Based on Cell Value

 
 
gth0824@gmail.com
Guest
Posts: n/a
 
      10th Jul 2008
Hello,

All of the cells in SheetA, column B, have values of either "X," "Y,"
or "Z". I need a macro that will look through each row of SheetA and
copy the rows that have "X" in column B to SheetX, "Y" to SheetY, and
"Z" to SheetZ. If column B is blank or has any value other than "X,"
"Y," or "Z", nothing should be copied.

Any ideas where to begin?

Thanks...
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      10th Jul 2008
How about this idea
data>filter>autofilter>filter on x>copy to sheetx >filter on y>copy to sheet
y,etc >filter to remove the filter arrows
record a macro and then clean it up.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
<(E-Mail Removed)> wrote in message
news:7c7dec74-6093-42bd-a046-(E-Mail Removed)...
> Hello,
>
> All of the cells in SheetA, column B, have values of either "X," "Y,"
> or "Z". I need a macro that will look through each row of SheetA and
> copy the rows that have "X" in column B to SheetX, "Y" to SheetY, and
> "Z" to SheetZ. If column B is blank or has any value other than "X,"
> "Y," or "Z", nothing should be copied.
>
> Any ideas where to begin?
>
> Thanks...


 
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
copy rows from one Data sheet to another sheet based on cell conte John McKeon Microsoft Excel Misc 2 15th May 2010 06:49 AM
Help: auto-copy entire rows from 1 sheet (based on cell criteria) to another sheet. bertbarndoor Microsoft Excel Programming 4 5th Oct 2007 04:00 PM
Copy a Sheet & Rename based on Cell Value Q Sean Microsoft Excel Programming 2 7th Sep 2007 01:01 PM
VAB to copy cell values into new Sheet, Overwrite if needed and based off of Cell Value in a column gumby Microsoft Excel Programming 4 14th Jul 2007 01:55 AM
Copy rows from one sheet to another based on a cell value =?Utf-8?B?U00x?= Microsoft Excel Worksheet Functions 1 21st Dec 2006 01:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:22 AM.