PC Review


Reply
Thread Tools Rate Thread

how to copy matching data in next sheet

 
 
TFMR
Guest
Posts: n/a
 
      10th Sep 2008
Dear All,

I have 3 sheets which contains the vehicles no, I want to copy only that
vehicle no. in 4th sheet, which is exist in 3 sheets.

Thanks
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      10th Sep 2008
The description of the task is too vague to offer a real solution. You can
copy a range from sheet 1 to sheet 4 with the following syntax.

Sheets("Sheet1").Range("A2").Copy _
Sheets("Sheet4").Range("B2")

Or if the data you want to copy is somewhere in a known range:

Dim c As Range
vehiclesno = Range("A1").Value
Set myKnownRange = Sheets(1).Range("A2:A100")
For Each c In myKnownRange
If c.Value = vehiclesno Then
c.Copy Sheets(4).Range("A" & Cells(Rows.Count, 1),End(xlUp).Row)
End If
Next

But to give you code you can use, we would have to know how the data is
organized on sheets 1 - 3, if it is sorted, if vehicle nos are all in the
same column, etc. Remember, we cannot see your worksheets.

"TFMR" wrote:

> Dear All,
>
> I have 3 sheets which contains the vehicles no, I want to copy only that
> vehicle no. in 4th sheet, which is exist in 3 sheets.
>
> 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
Re: copy matching value rows to other sheet muddan madhu Microsoft Excel Misc 0 7th Jun 2009 10:53 AM
Find value in sheet 1 and copy matching row from sheet 2 Also Microsoft Excel Programming 1 8th Jan 2008 11:49 AM
Macro to find matching date and copy values to another sheet =?Utf-8?B?VGlnZXI=?= Microsoft Excel Misc 3 13th Aug 2007 01:45 PM
List matching data from sheet 1 in sheet 2 Thrain Microsoft Excel Worksheet Functions 4 2nd Dec 2005 07:11 PM
Copy entire rows matching condition to a new sheet JP Microsoft Excel Discussion 3 20th May 2005 11:06 PM


Features
 

Advertising
 

Newsgroups
 


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