+ Reply to Thread
Results 1 to 6 of 6

Copy paste

  1. #1
    Registered User
    Join Date
    10-03-2007
    Posts
    16

    Copy paste

    Hi I have a very strange copy and paste macro that I need to make.
    Basically I have a file which is like this:

    Fruits Basket 1

    Apples

    Table of Apple Stats

    Pears

    Table of Pear Stats

    Fruits Basket 2


    Oranges

    Table of Orange Stats

    Apples

    Table of Apple Stats

    etc. etc.

    I'd like to search the file and Copy the title of Fruits Basket 2 then Copy the Subtitle of Apples and then copy the table of Apple Stats using range selection Xldown and Xlright. Oh and then paste into a new sheet. I'm a little hesitant on whether I should be using some sort of For loop or If loop? Also note there is always a 2 cell gap between Apples and the Table of Stats. However the gap between the Title Fruits Basket and the next Fruit is either two or three cells.

    Is there any way I can do this? It's so ridiculously annoying to have to search for apples every morning amongst all this fruit.
    Last edited by Sudheerp; 10-24-2008 at 12:08 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523
    Please provide a sample workbook with the original layout and the desired layout

  3. #3
    Registered User
    Join Date
    10-03-2007
    Posts
    16

    Posting Sample workbook? how?

    Hi Dave,

    How do I post a sample workbook?

    Thanks!

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Click on "Post reply" and scroll down to "manage attachments"The rest is quite straightforward. Please add your file as XLS rather than a picture or even xlsx

  5. #5
    Registered User
    Join Date
    10-03-2007
    Posts
    16

    Copy and Pasting Macro

    I've uploaded the file that I'm working with. It's exactly in this format and I want to copy the apples part of the excel sheet. Including the title and the table of apple information.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-03-2007
    Posts
    16
    Can anyone help me out on this? really rough to do this manually!

+ 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