Auto copy rows w/ specific value from sheet to another sheet

Ed_Filipino

New Member
Joined
Jan 5, 2018
Messages
6
hi good day may you can help me to make a code regarding the table I need. I have a table w/ 5 columns (please see below) that I am running for now.
CODE
DATE
RUNNING HOURS
REPAIR DONE
MECHANIC
FE25
29-Jan-18
5,000
CHANGE BATTERY
RED
FE26
30-Jan-18
4,560
CHANGE RIMS
GREEN
J15
31-Jan-18
3,521
CHANGE ALTERNATOR
BLUE
FE25
1-Feb-18
5,160
CHANGE BATTERY
RED
L24
2-Feb-18
4,560
CHANGE TIRE
GREEN
FE25
3-Feb-18
5,200
CHANGE STARTER MOTOR
BLUE

<tbody>
</tbody>

what I need was to autocopy the full rows of a specific value on the other sheet whenever I updated the first table which look like this if I make the FE25 table on separate sheet. Please refer below so if there comes a time a fourth row containing FE25 it will automatically update as well the other sheet.
CODE
DATE
RUNNING HOURS
REPAIR DONE
MECHANIC
FE25
29-Jan-18
5,000
CHANGE BATTERY
RED
FE25
1-Feb-18
5,160
CHANGE BATTERY
RED
FE25
3-Feb-18
5,200
CHANGE STARTER MOTOR
BLUE

<tbody>
</tbody>


May you help me regarding this as it will be a big help for me. Have a good day and you may help a lot more people like who had trouble on this kind of matter.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
something along the lines of

Dim c As Range, rng
Dim lr As Long
Sheets("Master").Activate
lr = Range("a" & Rows.Count).End(xlUp).Row
Set rng = Range("a2:a" & lr)
For Each c In rng
If c.Value = "FE25" Then
c.EntireRow.Copy
Sheets("Fe25").Activate
lr = Range("a" & Rows.Count).End(xlUp).Row + 1
Range("a" & lr).Select

ActiveSheet.Paste
End If
Sheets("Master").Activate
Next c
 
Upvote 0
thanks a lot. I will try now.its a really big help for me when it works. Much appreciated. Keep safe ad bless always.
 
Upvote 0

Forum statistics

Threads
1,215,694
Messages
6,126,252
Members
449,305
Latest member
Dalyb2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top