Header add into multi excel file by VBA

faizan haq

New Member
Joined
Jan 14, 2020
Messages
12
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. MacOS
Hi,

I have Header value in C1:C10 in master 1 file with file name and i need to add header one by one value into multiple files which is available in folder it should be done by VBA automatic,
please also not header all are same. you can use one.

all work on sheet1
step
1. copy (C1) value from master file
2. open 1 file from folder
3. set on centre bottom header
4. close
5. copy (C2) value from master file
6. open 2 file from folder
7. set on centre bottom header
8. close

codefile nameHeader
GP01F1925M082.xlsx7467 ADIDAS PROJECTION - 3 (BATCH#79249 ) (080720 9-58 am)
GP02OIS21250600.xlsx7467 ADIDAS PROJECTION - 3 (BATCH#79249 ) (080720 9-58 am)
GP03OIS21250931.xlsx7467 ADIDAS PROJECTION - 3 (BATCH#79249 ) (080720 9-58 am)
GP04OJS19250800.xlsx7467 ADIDAS PROJECTION - 3 (BATCH#79249 ) (080720 9-58 am)
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,211,869
Messages
6,104,472
Members
447,910
Latest member
abrook1308

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