copy from one sheet to another updating sheet 2 please help on deadline

sharper092

New Member
Joined
Jun 11, 2016
Messages
2
nameaddressphemtop donbldg fund
janeaabcy
johnbbde yy
herddhiy
janeaabcy
johnbbde yy
herddhiy

<colgroup><col width="64" style="width:48pt" span="6"> <tbody>
</tbody>


I am trying to use the above table as sheet one, and if there is a y in top don in col E then I want the entire row to go to sheet 2 (topdonor), and whenever I change, add or delete from sheet one, (adding or removing individual) sheet 2 will automatically update without duplicating

Private Sub CommandButton1_Click()
x = 2
Do While Cells(x, 1) <> ""
If Cells(x, 1) = "y" Then
Worksheets("main").Rows(x).Copy
Worksheets("topdonor").Activate
eRow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
ActiveSheet.Paste Destination:=Worksheets("topdonor").Rows(eRow)
End If
Worksheets("main").Activate
x = x + 1
Loop
End Sub
<strike></strike>
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

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