+ Reply to Thread
Results 1 to 6 of 6

cut then move (insert or paste) range

  1. #1
    Registered User
    Join Date
    02-03-2010
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    3

    cut then move (insert or paste) range

    Hi. I'm having a toughs time with what I thought was a simple task. I need to cut and insert/paste a range of cells and then repeat in a loop.

    Explicitly, I have 3 columns with 2990 rows. Every 46 rows is a 'group' and I want to cut each group and paste at the top of the sheet so I have only 46 rows and (2990/46*3) 195 columns. I need to preserve the order so that the group at the bottom becomes the rightmost group.

    More simply, I have

    xxx
    xxx
    xxx
    yyy
    yyy
    yyy
    zzz
    zzz
    zzz

    and I want
    xxx yyy zzz
    xxx yyy zzz
    xxx yyy zzz

    From searching around, I tried to write a simple code but obviously I'm not handling the variables right, but you get the idea.

    Please Login or Register  to view this content.
    Thanks for any help.
    Last edited by coregis; 02-03-2010 at 04:32 AM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: cut then move (insert or paste) range

    earthing
    try
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    02-03-2010
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: cut then move (insert or paste) range

    Thanks for the effort, but it didn't work... it's grabbing 3 rows from one column (the first one) instead of 3 columns from 46 rows and it fails before the end. I don't understand what is going on and playing with it is not going to well... I appreciate it though.

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: cut then move (insert or paste) range

    assumed that you just needed the structure

    looks better.. try

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-03-2010
    Location
    earth
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: cut then move (insert or paste) range

    Quote Originally Posted by pike View Post
    assumed that you just needed the structure

    looks better.. try
    Thanks, I get it now.

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: cut then move (insert or paste) range

    earthling
    your first code was very close, and its good to see someone having a go, it just need a tune up
    well done!
    thanks for marking the post [SOLVED]

+ 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