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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,214,832
Messages
6,121,854
Members
449,051
Latest member
excelquestion515

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