+ Reply to Thread
Results 1 to 13 of 13

copying data from one sheet to another

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    copying data from one sheet to another

    Hello

    i dont know much about using macros in excel. i have two spreadsheets one called "Order Form" and the other "Update". order details are entered into "order form" but i would like to copy the details into "update" so i can keep a running log of all orders placed. at the present when the order is sent over to England the info in "order form" has to be printed out and kept but this ends up with loads of sheets and is too hard to keep track of what has been ordered and what has arrived/not arrived yet etc. if i could get the order details copied into the "update" sheet would mean i have a list of all orders and can then search or filter when needed. sometimes there will be more than one row of data in the "order form". can i do this by using a command button which will also automatically delete the info in "order form"?

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

    Re: copying data from one sheet to another

    Sure, this can be done easily. Why dont you attach a sample of your file so we can assist you further. Ensure that your sample file has the same format as the original file, and you do not need to retain the sensitive data.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    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
    10-16-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: copying data from one sheet to another

    Order Book.xlsx

    Thank you for your quick response. Hope this is ok for you

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

    Re: copying data from one sheet to another

    What should be filled in columns I-J-K?

    Do you want the data from the FORM sheet to be cleared once the data is copied to the UPDATE sheet?

  5. #5
    Registered User
    Join Date
    10-16-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: copying data from one sheet to another

    I-J-K in the UPDATE sheet are entered by myself - no need to worry about this, sorry. yes if the data could be deleted this would be great thanks

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

    Re: copying data from one sheet to another

    One more question - would there be any data in any cell of the FORM sheet which will help us to identify that it is the last row to be copied?

  7. #7
    Registered User
    Join Date
    10-16-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: copying data from one sheet to another

    No, is it needed?

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

    Re: copying data from one sheet to another

    It is to help the macro understand which is the last row which needs to be copied. Even if it is after the row to be copied, i can get it to work.

  9. #9
    Registered User
    Join Date
    10-16-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: copying data from one sheet to another

    oh ok. "order complete" or something like that. it doesnt realy matter - if you want to do it own way as you understand what you need to make it work, i can work around it

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

    Re: copying data from one sheet to another

    No no i meant is there some text like Total or End of Order or something in the FORM tab as the last row below all the rows? So the macro can identify that the row before it is the last row to be copied and it can then clear the contents of the FORM tab.

  11. #11
    Registered User
    Join Date
    10-16-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: copying data from one sheet to another

    there isnt at the minute but we can use something like that. so if i type End of Order under the last row it will know to stop?

  12. #12
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: copying data from one sheet to another

    The code loops until the last row minus 6 in sheet form.

    The code works if the heading on both sheets match( Exact)
    Attached Files Attached Files
    Last edited by AB33; 10-16-2013 at 12:09 PM.

  13. #13
    Registered User
    Join Date
    10-16-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: copying data from one sheet to another

    Thanks You AB33 for the workbook. works very well and saves a lot of hassle!! sorry i am only replying now but i am only back at the office today. thanks again

+ 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. Replies: 1
    Last Post: 03-11-2013, 05:37 AM
  2. Replies: 0
    Last Post: 03-04-2013, 03:25 PM
  3. [SOLVED] Code from tigeravatar ,Copying data from one sheet and copying it
    By DanielRay in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-07-2012, 03:07 PM
  4. [SOLVED] Macro for copying data from one column in sheet 2 based on two criterias in sheet 1
    By baardings in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2012, 01:50 PM
  5. Copying a template sheet and putting those multiple sheets data into a summary sheet
    By John Wolfe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2011, 06:29 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