+ Reply to Thread
Results 1 to 5 of 5

Cut and paste across sheets

  1. #1
    Registered User
    Join Date
    06-28-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    4

    Cut and paste across sheets

    I have a range of cells that I add data to on a weekly basis. At the end of the week, I cut this range and paste it in another sheet within the same file. The trick is that I have to paste it in the reverse order. So, cells from B--> H needs to be pasted in the reverse direction H-->B. How can I do this using VBA?

  2. #2
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Cut and paste across sheets

    Hi, Welcome to the forum...

    Here is one way with the help of a helper col. Note make sure you dont have data in col Z OR AA

    Please Login or Register  to view this content.
    Thank You, Mike

    Some Helpful Hints:

    1. New members please read & follow the Forum Rules
    2. Use Code Tags...Place[code]Before the first line and[/code] After the last line.
    3. If you are pleased with a solution mark your post SOLVED.
    4. Thank those who have help you by clicking the scales at the top right of the post.

    Here...

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Cut and paste across sheets

    Hi Gigz, welcome to the forum.

    The following macro loops through rows on Sheet1 (from row 2 through your last used row) and for each row it loads an array, reverses the values and then pastes those values into Sheet2 starting in the next available row (starting in row 2 assuming a header row).
    Please Login or Register  to view this content.
    Hope that helps!

  4. #4
    Registered User
    Join Date
    06-28-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Cut and paste across sheets

    Hi Paul and Mike. Thanks for your responses. I finally have a formula that works. The guy that created it for me said it is primitive, but hey, it works Here it is:
    Please Login or Register  to view this content.
    Last edited by Paul; 07-11-2011 at 03:44 PM. Reason: Added code tags for user; please do so yourself in the future.

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Cut and paste across sheets

    Yes, that is quite primitive, but if it works it works.

    Were the codes provided by Mike and I not working? We didn't hear back from you, so there was no way to tell.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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