Macro to copy and paste value to another worksheet

Patchbear

New Member
Joined
Dec 14, 2016
Messages
1
Good day all

Hope someone can help please. I have the following worksheets:

Admin
S/NoIDNameLast TakenExpiryRemarks
112345ABC14/12/1514/12/16Expired
212346BCA03/02/1603/02/17
312347CAB02/01/1602/01/17

<tbody>
</tbody>

Ops
S/NoIDNameLast TakenExpiryRemarks
19876POL06/04/1506/04/16Expired
28765LOP03/08/1603/08/17
37654OPL04/12/1504/12/16Expired

<tbody>
</tbody>

Log
S/NoIDNameLast TakenExpiryRemarks
14567ASW02/03/1602/03/17
25678WAS07/12/1507/12/16Expired
36789SAW04/12/1504/12/16Expired

<tbody>
</tbody>

This is my desired outcome on another worksheet. Basically is to copy certain details of employees whose remarks are "expired" in "Admin" worksheet followed by those expired in "Ops" worksheet and so on, with a running serial number.
However, the "Dept" column will be the name of the worksheet that the employee/s belong/s to.

Expired
S/NoIDNameExpiryDept
112345ABC14/12/16Admin
29876POL06/04/16Ops
37654OPL04/12/16Ops
45678WAS07/12/16Log
56789SAW04/12/16Log

<tbody>
</tbody>

Thanks in advance :)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,214,976
Messages
6,122,543
Members
449,089
Latest member
davidcom

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