Find a value and link to another sheet

massel4

New Member
Joined
Mar 21, 2013
Messages
1
Hi,

I'm having problems with VBA and I was wondering if any of you would be able to help...

So, I have a worksheet named "Liste" (everything's in French, but it shouldn't matter) in which I list all the employees, their employee number, their department number, and all the mandatory training they have to do during the year. Then, for each department, I have a seperate worksheet to tally the progress being made by the employees of that particular department, so the director of the dept. can monitor his/her employees.

What I need a macro to do is find every employee in dept. 004 and list them in my 004 Worksheet, and then link the cells next to their name on Worksheets("Liste") to the cells next to their newly copied name on worksheets("004")... I would also need the macro to update immediately if I add a new employee in that department, and put it a the end of my list... same thing if I remove an employee
I made a simple mockup here (in the actual worksheets, there are a lot more classes, employees, dept., etc.)

Thanks for any help... and if you need any more informations, I'll gladly provide them...


This would be Worksheets("Liste")
ABCDEF
1Dept.NameClass1Class2Class3Class4
2004A
3007B
4004C
5018D

<TBODY>
</TBODY>

And this would be the end result in Worksheets("004")
ABCDEFGH
1
2NameClass1Class2Class3Class4
3A=Liste!C2=Liste!D2=Liste!E2=Liste!F2
4C=Liste!C4=Liste!D4=Liste!E4=Liste!F4
5

<TBODY>
</TBODY>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,214,973
Messages
6,122,534
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