+ Reply to Thread
Results 1 to 2 of 2

how to combine 2 or excel into 1 excel file(different sheet)

Hybrid View

althonfx how to combine 2 or excel... 11-01-2005, 05:56 AM
Guest Re: how to combine 2 or excel... 11-01-2005, 08:05 AM
  1. #1
    Registered User
    Join Date
    11-01-2005
    Posts
    1

    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??

  2. #2
    Mike Fogleman
    Guest

    Re: 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" <althonfx.1xtbqd_1130839540.328@excelforum-nospam.com> wrote in
    message news:althonfx.1xtbqd_1130839540.328@excelforum-nospam.com...
    >
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1