copy files from folder to another & match combobox with textbox

abdo meghari

Active Member
Joined
Aug 3, 2021
Messages
465
Office Version
  1. 2019
hello

I have list of folders in combobox1 contains new folders are existed in folder name is main in this directory "C:\Users\ WORLD\Desktop\MAIN\" and contains many subfolders names are matched with combobox , and I have textbox1 contain path of file in this directory D:\Users\ WORLD\Desktop\DATA" . so when I have path for file like this "D:\Users\ WORLD\Desktop\DATA\as.jpg\" and select from combobox1 specific folder . for instance the folder name is selected from combobox1 "PIC" , and is existed in this directory "C:\Users\ WORLD\Desktop\MAIN\" then should move this file from directory "D:\Users\ WORLD\Desktop\DATA\ which is exised in textbox1 to "C:\Users\ WORLD\Desktop\MAIN\PIC\"
I hope this logic
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,215,480
Messages
6,125,054
Members
449,206
Latest member
Healthydogs

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