VBA Code require

s14sharm

New Member
Joined
Nov 14, 2013
Messages
1
Following step in excel
1.. I Have folder in "D" named "sant"
2.. In "sant" folder there are many workbooks
3.. I Want to create a macro in which the content of all workbook pasted one below one

For example
in folder there are three workbook names sant1.xlsx ; son1.xlsx; son2.xlsx
in sant1.xlsx

[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"]neha[/TD]
[TD="width: 64, align: right"]1[/TD]
[/TR]
[TR]
[TD]poonam[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]riya[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]aish[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]

in son1.xlsx
[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"]roopa[/TD]
[TD="width: 64, align: right"]1[/TD]
[/TR]
[TR]
[TD]priya[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]tia[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]nia[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]

in son2.xlsx
[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"]tinnu[/TD]
[TD="width: 64, align: right"]1[/TD]
[/TR]
[TR]
[TD]tinni[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]tinku[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]pinku[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]

my output should be .

[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"]neha[/TD]
[TD="width: 64, align: right"]1[/TD]
[/TR]
[TR]
[TD]poonam[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]riya[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]aish[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"]roopa[/TD]
[TD="width: 64, align: right"]1[/TD]
[/TR]
[TR]
[TD]priya[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]tia[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]nia[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 128"]
<tbody>[TR]
[TD="width: 64"]tinnu[/TD]
[TD="width: 64, align: right"]1[/TD]
[/TR]
[TR]
[TD]tinni[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]tinku[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]pinku[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]
 

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,223,276
Messages
6,171,140
Members
452,381
Latest member
Nova88

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