Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: VBA Code To Move Data From One Sheet To Another And Delete From Source Sheet

  1. #11
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    I would say try yourself first and comeback if it not worked. That way you will learn something.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  2. #12
    Member
    Join Date
    Dec 2012
    Posts
    78
    Rep Power
    13
    Hi Admin

    I think the VBA code is excellent....I will try and see what I get

    Can the following be altered...this will finish all requirements

    I added all the data in Sheet 1 and before I pressed the button "transfer to sheet 2" I hit the "Clear Data" button and it deleted the data before I transferred it to Sheet 2....can the Clear Data button only clear data if the data has been transferred to Sheet 2 first...can a message "Transfer data to sheet 2"

    Thanks

  3. #13
    Member
    Join Date
    Dec 2012
    Posts
    78
    Rep Power
    13
    Hi Admin
    I renamed the sheets and changed in the VBA code but now i get a Runtime Error - 1004 Application defined-or object defined error...was working exactly as programmed until i changed the sheet names..

    Can the following be altered...this will finish all requirements

    I added all the data in Sheet 1 and before I pressed the button "transfer to sheet 2" I hit the "Clear Data" button and it deleted the data before I transferred it to Sheet 2....can the Clear Data button only clear data if the data has been transferred to Sheet 2 first...can a message "Transfer data to sheet 2"

    Thanks

    Rich
    Attached Files Attached Files

  4. #14
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi

    It should be L37 and L21 rather than 137 and 121.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  5. #15
    Member
    Join Date
    Dec 2012
    Posts
    78
    Rep Power
    13
    Hi Admin

    Thanks

    Can we finish this with a final alteration to the Clear Data code...can the Clear Data button only be functional once the data for that week has been entered into Records sheet...once the data has been Transferred to the Record Sheet by pressing the Transfer Data To Records button then the Data can be cleared

    Thanks

    Rich

Similar Threads

  1. Replies: 1
    Last Post: 06-12-2013, 07:42 PM
  2. Replies: 6
    Last Post: 05-20-2013, 10:06 PM
  3. Replies: 2
    Last Post: 12-26-2012, 08:31 AM
  4. VBA code to copy data from source workbook
    By Howardc in forum Excel Help
    Replies: 1
    Last Post: 07-30-2012, 09:28 AM
  5. Replies: 2
    Last Post: 11-17-2011, 07:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •