Move files to specified folder

dummies

New Member
Joined
Jul 10, 2020
Messages
28
Office Version
  1. 2016
Platform
  1. Windows
I have 2 folder,
1. Temp, which contains many sub folders(department or course)
2.vba , it contain files(name of the students) of the every students.
I am done with creating files and folders of every students and their department, but i am stuck with how to move files to specified folder.
Like if student A is in commerce department, i want to move that student A to commerce folder. Like wise is student B is in science, move student B to science folder, and so on. (Some students have same department as well). And all the moved file should be password protected(password should be last 4 digit of their date of birth)
It will be great help if any one could help me with this. I am really stuck here.
Thank you in advance.
 
that is an entirely different problem because it involves opening each file to look at column G and then save the file with a password, The code I have written just renames the file it doesn't open the file. I suggest you post this as a new query
 
Upvote 0

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
that is an entirely different problem because it involves opening each file to look at column G and then save the file with a password, The code I have written just renames the file it doesn't open the file. I suggest you post this as a new query
Okay thank you.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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