+ Reply to Thread
Results 1 to 4 of 4

Finding 3 tables on a sheet and copying them, and then removing the blanks

  1. #1
    Registered User
    Join Date
    02-13-2012
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Finding 3 tables on a sheet and copying them, and then removing the blanks

    Hi all.

    I have used this forum a few times to search for solutions to my problems. This has taught to start using macros, but I'm a bit unsure with this one...

    What I want to do is have a macro which finds a table on a sheet, and then copy the data from that table to a different workbook.

    I have done the copying, navigating and and pasting before, but I don't know how to search / find the start and end point of the range of the table.

    The table will always ahve the same layout, same column headers for example, but there will be a different number of rows each time. However, there will always be the same text at the bottom of the table, so maybe I could search for that and offset???

    Thx.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: Finding 3 tables on a sheet and copying them, and then removing the blanks

    Its better if you attach a sample file to this thread. It will help us to understand your tables.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    02-13-2012
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Finding 3 tables on a sheet and copying them, and then removing the blanks

    Ok, attached is a sample file.
    There will be a sheet for each day of the week.
    Each sheet will have the three tables as shown, but with different numbers of rows depending upon the workbook. I want to copy the top portion,above the 'waste watch' cell.
    You can see the common text at the bottom, although the table will not be completed this far...
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-13-2012
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Finding 3 tables on a sheet and copying them, and then removing the blanks

    Maybe I need to use the .find command?

+ 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