Hi Vikas, Here is the macro than can combine data from multiple filse in to a single file
Public Sub CombineDataFromFiles() Dim varArrFile As Variant Dim intCtr As Integer Dim strFiles As String Dim wbk As Workbook Dim wbkFinal As Workbook Dim rngData As Range Set wbkFinal = Workbooks.Add(1) varArrFile = Application.GetOpenFilename("*.xls,*.xlsx", , "Select Files", , True) If IsArray(varArrFile) = False Then MsgBox "Select File..." Exit Sub Else For intCtr = LBound(varArrFile) To UBound(varArrFile) Set wbk = Workbooks.Open(varArrFile(intCtr)) With wbk.Worksheets(1) Set rngData = .UsedRange End With With wbkFinal.Worksheets(1) rngData.Copy .Range("A" & .Range("A" & Rows.Count).End(xlUp).Row + 1).PasteSpecial Application.CutCopyMode = False End With wbk.Close Set wbk = Nothing Next End If MsgBox "All data combile into resultant file Please save!!!" End Sub Here you can select multple file by using CTRL key and selecting multiple files. regards Prince On Tuesday, January 15, 2013 1:45:48 PM UTC+5:30, vikas wrote: > > Hi prince > > > Will you please help me. > I have three different excel file and each excel file have three different > wrk sheet. I need to link or copy all data in one excel file from these > different wrk sheet. How do I do this. > > In advance thnks for help. > Sent from my BlackBerry® Smartphone on Loop Mobile. > ------------------------------ > *From: * Prince <prince...@gmail.com <javascript:>> > *Sender: * excel-...@googlegroups.com <javascript:> > *Date: *Sun, 13 Jan 2013 23:02:48 -0800 (PST) > *To: *<excel-...@googlegroups.com <javascript:>> > *ReplyTo: * excel-...@googlegroups.com <javascript:> > *Subject: *$$Excel-Macros$$ Re: formula required > > Hi Prashant, > > I hope it may help you: > > =SUM(($D$2:D5=D2)*1*(G2:M2)) with CSE in Cell "O2" > > Regards > Prince > > On Monday, January 14, 2013 12:19:32 PM UTC+5:30, ppawle.excel wrote: >> >> Dear Team, >> >> Need a formula to look up a filed & give sum of figure , sample file >> attached >> >> Regards, >> >> Prashant >> > -- > Join official Facebook page of this forum @ > https://www.facebook.com/discussexcel > > FORUM RULES > > 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) Jobs posting is not allowed. > 6) Sharing copyrighted material and their links is not allowed. > > NOTE : Don't ever post confidential data in a workbook. Forum owners and > members are not responsible for any loss. > --- > You received this message because you are subscribed to the Google Groups > "MS EXCEL AND VBA MACROS" group. > To post to this group, send email to excel-...@googlegroups.com<javascript:> > . > To unsubscribe from this group, send email to > excel-macros...@googlegroups.com <javascript:>. > Visit this group at http://groups.google.com/group/excel-macros?hl=en. > > > -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 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) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en.