add value to multiple file by matching file name in excel VBA

mehidy1437

Active Member
Joined
Nov 15, 2019
Messages
348
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
  2. Mobile
  3. Web
Hi Guys,

I have an excel file with some file/style name with corresponding file/style weight.

WEIGHT.xlsx
ABCD
1STYLEWEIGHT
2AA-001110
3AA-002130
4AA-003150
5AA-004170
6AA-005190
Sheet3
Cell Formulas
RangeFormula
D3:D6D3=D2+20


And I also have some files in a folder in "E" drive, with the style name with some prefix as below.

SS_AA-001.xls
SS_AA-002.xls
SS_AA-003.xls
SS_AA-004.xls
SS_AA-005.xls
SS_AA-006.xls
SS_AA-007.xls
SS_AA-008.xls

I would like to match the file name & put the corresponding weight into each file in CELL A5 in Sheet1.

Please help me to sort out this issue.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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