Dear Abhidha,

Try it..
before run the macro, please check on Tools-Reference-Microsoft Runtime
Scripting
Change path and range as per your need

Sub Consodilate_workbook()
Dim wb As      Workbook
Dim rng As      Range
Dim fil As        File
Dim i As          Long
Dim fld As       Folder

Set wb = ThisWorkbook
Dim FSO As FileSystemObject
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.DisplayAlerts = False
Set FSO = New FileSystemObject
Set fld = FSO.GetFolder("D:\FSO\")
For Each fil In fld.Files
i = wb.Sheets(1).Cells(Rows.Count, "A").End(xlUp).Row + 1
Workbooks.Open fil
'For Heading
ActiveWorkbook.Sheets(1).Range("A1:C1").Copy wb.Sheets(3).Cells(1, 1)
ActiveWorkbook.Sheets(2).Range("A2:C" &
ActiveWorkbook.Sheets(1).Cells(Rows.Count, "c").End(xlUp).Row).Copy
wb.Sheets(1).Cells(i, 1)
ActiveWorkbook.Save
ActiveWorkbook.Close
Next fil
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
Application.DisplayAlerts = True
End Sub


-- 
Thanks & regards,
Noorain Ansari
www.noorainansari.com
www.excelvbaclinic.blogspot.com

On Wed, Jul 18, 2012 at 11:38 AM, Abhidha Dixit <abhidha.di...@gmail.com>wrote:

> Dear All
>
> Please help me to consolidate sheet no 2 from multiple excel workbooks
> into 1 excel wotkbook
>
>
> Regards
> Abhidha
>
> --
> --
> FORUM RULES (986+ members already BANNED for violation)
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
>
> 2) Don't post a question in the thread of another member.
>
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
>
> 4) Acknowledge the responses you receive, good or bad.
>
> 5)  Cross-promotion of, or links to, forums competitive to this forum in
> signatures are prohibited.
>
> NOTE  : Don't ever post personal or confidential data in a workbook. Forum
> owners and members are not responsible for any loss.
>
>
> ------------------------------------------------------------------------------------------------------
> To post to this group, send email to excel-macros@googlegroups.com
>
> To unsubscribe, send a blank email to
> excel-macros+unsubscr...@googlegroups.com
>
>
>

-- 
-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com


Reply via email to