Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to combine 2 or excel into 1 excel file(different sheet)


hi, i am newbie in excel programming...


can anyone tell me how to combine 2 or excel into 1 excel
file(different sheet)?

example:

i wan combine excel file A and excel file B into excel file C (in
differrent sheet), using marcos.


how should i do??


--
althonfx
------------------------------------------------------------------------
althonfx's Profile: http://www.excelforum.com/member.php...o&userid=28473
View this thread: http://www.excelforum.com/showthread...hreadid=480787

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default how to combine 2 or excel into 1 excel file(different sheet)

Just a guess, but this will copy sheet1 to sheet3 and copy sheet2 to the
next available row in sheet3:

Sub CopySheets()
Dim iLRow As Long
Sheets("Sheet1").UsedRange.Copy Destination:= _
Sheets("Sheet3").Range("A1")
iLRow = Sheets("Sheet3").Cells(Rows.Count, "A").End(xlUp).Row
Sheets("Sheet2").UsedRange.Copy Destination:= _
Sheets("Sheet3").Range("A" & iLRow + 1)
End Sub

Mike F
"althonfx" wrote in
message ...

hi, i am newbie in excel programming...


can anyone tell me how to combine 2 or excel into 1 excel
file(different sheet)?

example:

i wan combine excel file A and excel file B into excel file C (in
differrent sheet), using marcos.


how should i do??


--
althonfx
------------------------------------------------------------------------
althonfx's Profile:
http://www.excelforum.com/member.php...o&userid=28473
View this thread: http://www.excelforum.com/showthread...hreadid=480787



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
combine many excel files in one file Amir Mongy Excel Discussion (Misc queries) 1 March 23rd 10 12:15 PM
Compare to two sheets in one excel file to evaluate and combine whereidentical. [email protected] Excel Worksheet Functions 1 June 4th 08 11:44 PM
Combine worksheets from different excel files into one excel file dbguy11 Excel Discussion (Misc queries) 2 February 27th 06 03:06 PM
Is it possible to combine MATCH & IF to search an excel sheet Callan Excel Worksheet Functions 1 October 28th 05 01:45 PM
In Excel combine tables from multiple worksheets in to one sheet? Pau Excel Worksheet Functions 1 June 25th 05 12:31 AM


All times are GMT +1. The time now is 03:41 AM.

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

About Us

"It's about Microsoft Excel"