Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default CONSOLIDATE DATA FROM MULTIPLE SHEETS IN ONE

Hi,

After I import multiple text files in excel in seperate sheets in same
workbook, I want to consolidate them in one sheet. First row of each
sheet has same headers so during data merge it should not get first
row of sheet2, sheet3, sheet4.

I want to run this macro seperately from first macro i.e. import text
files so that I can first check all sheets for proper data integrity
manually.

Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default CONSOLIDATE DATA FROM MULTIPLE SHEETS IN ONE

I created a sheet called Combined Sheets, cell A2 and clicked on Macros and
ran this one. It combines the A2 cells in sheets 1, 2, and 3. Fills formula
Down to (row 285), copies all cells highlighted and pastes just the values.
Hopes this helps.

Sub combineall()
'
' combineall Macro
'

'
ActiveCell.FormulaR1C1 = "=Sheet1!RC&"" ""&Sheet2!RC&"" ""&Sheet3!RC"
Range("A2").Select
Selection.AutoFill Destination:=Range("A2:A285"), Type:=xlFillDefault
Range("A2:A285").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End Sub

--
Thank you,

scrowley(AT)littleonline.com


"Sinner" wrote:

Hi,

After I import multiple text files in excel in seperate sheets in same
workbook, I want to consolidate them in one sheet. First row of each
sheet has same headers so during data merge it should not get first
row of sheet2, sheet3, sheet4.

I want to run this macro seperately from first macro i.e. import text
files so that I can first check all sheets for proper data integrity
manually.

Any help would be appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Consolidate Excel Data from multiple sheets into one rodw Excel Worksheet Functions 1 April 2nd 09 08:03 PM
Consolidate multiple sheets (latest entry only) Rusty Excel Discussion (Misc queries) 1 November 13th 08 06:05 AM
Consolidate data from multiple sheets Bdavis Excel Worksheet Functions 0 September 26th 06 04:25 PM
get distinct data from multiple sheets & then consolidate distinct Nikhil Excel Programming 1 September 18th 06 07:01 PM
how do i use import to consolidate data from multiple sheets Naveen Excel Worksheet Functions 1 April 14th 06 12:41 PM


All times are GMT +1. The time now is 03:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"