+ Reply to Thread
Results 1 to 7 of 7

Copy cells into a new sheet

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Question Copy cells into a new sheet

    Hi all

    I have a sheet where you can enter info into cells C5, C7, C9, C11, C13, C15 & C17. I need a macro that can copy this info into a new sheet in cells A1, A2, A3, A4, A5, A6, A7. But the next time you press the macro button it needs to find next available line and add the information into the same 7 colums. So next B1, B2, B3, B4, B5, B6, B7 then C1, C2, C3, C4, C5, C6, C7 and so on.

    So it should not delete any info on the first sheet as I need this data for other things before it is deleted.

    Thanks in advance

    Here is a example of the file

    Q database 1 exam.xlsm
    Last edited by webbie; 12-04-2013 at 09:30 AM.

  2. #2
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Copy cells into a new sheet

    Try this:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-12-2013
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Copy cells into a new sheet

    Hi Sbarro79

    That works just as I asked for.

    Two more questions.

    1. What part of the code would I need to change to move the data to A1, B1, C1, D1, E1, F1, G1 instead of A1, A2, A3, A4, A5, A6, A7?

    2. Is it possible to send data to two sheets at the same time? I can of course make two buttons but would like to combine this.

    Thanks

  4. #4
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Copy cells into a new sheet

    Ad. 1. Try this:
    Please Login or Register  to view this content.
    Ad. 2. Yes, it's possible. The question is you want to send data to two new sheets, or already existing sheets.

  5. #5
    Registered User
    Join Date
    08-12-2013
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Copy cells into a new sheet

    This works just fine. Once again thanks. And regarding nr 2 it is to 2 existing sheets.

  6. #6
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Copy cells into a new sheet

    Ad. 2. Try this

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-12-2013
    Location
    Copenhagen, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Copy cells into a new sheet

    It did copy the values into the wrong cells on the two sheets, but I got it to work with the following:

    Please Login or Register  to view this content.
    Thanks for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating a copy button to copy range of cells to a different sheet
    By 5degrees in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-15-2013, 12:21 PM
  2. Replies: 0
    Last Post: 09-22-2012, 03:38 AM
  3. Copy data from a sheet and Paste in another sheet into Merged cells
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2011, 02:01 PM
  4. Copy data from one sheet (Fixed Cells and sheet) to another sheet
    By RCatman23 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-21-2009, 12:56 PM
  5. Need macro to copy data from sheet 1 to multiple pages on sheet 2 in correct cells
    By iturnrocks in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-16-2009, 03:33 PM

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