Vergelijken en op een specifieke locatie opslaan

janjorritsma

New Member
Joined
Jun 22, 2015
Messages
1
Beste allen,

Ik heb, met o.a. wat hulp van internet, een stukje code geschreven. Deze code zorgt ervoor dat in Excel naar bepaalde waarden (stamnummers) wordt vergeleken met bestanden in de map 01_foto’s. Zodra er een overeenkomst is, dan worden de foto’s in 03_basisscholen opgeslagen.

Nu heb ik een losse macro die de scholen heeft aangemaakt. Nu wil ik alleen dat in Excel ook wordt gekeken op welke school een leerling zit en dat de bestanden (foto’s) gelijk in de juiste map komen te staan. De namen van de scholen staan in de E kolom. Hopelijk is het zo wat duidelijker! In ieder geval bedankt voor welk antwoordt dan ook.

Voor de volledigheid heb ik de bestanden hier geüpload.

Met vriendelijke groet,
Jan
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Jan,
Wijzig volgende regel in je macro en dan komen de foto's in de map van de desbetreffende school te staan
FileCopy strDirLocSource & rngCell.Value, strDirLocDestination & Cells(rngCell.Row, 5) & "\" & rngCell.Value
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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