+ Reply to Thread
Results 1 to 3 of 3

Merging tables from different worksheets

  1. #1
    Registered User
    Join Date
    07-21-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Question Merging tables from different worksheets

    This is my first post so I hope I dont ask something that has been asked a thousand times......

    I've 5 tables all of the same format on different worksheets. I want to collate them all onto one sheet. I decided that writing a Macro would be best, but I couldn't figure it out. I've had a few goes at it but cannot get it right.

    Can anyone help me?

  2. #2
    Registered User
    Join Date
    06-21-2011
    Location
    Dhaka
    MS-Off Ver
    Excel 2003, 2007
    Posts
    20

    Re: Merging tables from different worksheets

    Can you provide sample?

  3. #3
    Registered User
    Join Date
    07-21-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Merging tables from different worksheets

    Here the example I have so far - this is just for one sheet but I wanted to repeat this for all relevant spreadsheets:

    '
    Sheets("Sheet4").Select
    Range("A2").Select
    Range(Selection, Selection.End(xlDown)).Select
    Range(Selection, Selection.End(xlToRight)).Select
    Selection.Copy
    Sheets("All Table").Select
    Range("A2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False

    End Sub

    The problem I am having is when pasting in the 2nd,3rd,4th....sheets as I do not know the code to find the first empty cell in a particular column.

    thanks
    Last edited by kYMiNARA; 07-21-2011 at 10:10 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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