+ Reply to Thread
Results 1 to 2 of 2

Creating a macro (vba code) to move every other row

  1. #1
    Registered User
    Join Date
    01-22-2009
    Location
    Tempe, AZ
    MS-Off Ver
    Excel 2007
    Posts
    1

    Creating a macro (vba code) to move every other row

    I'm sure this is quite easy, but I am brand new to visual basic language.

    What I would like to do is turn this:

    1 2 3 4
    5 6 7 8
    9 10 11 12
    13 14 15 16

    Into this:

    1 2 3 4 5 6 7 8
    9 10 11 12 13 14 15 16

    In other words, I'd like to move every other row, starting with the second, next to the first and have that repeat down the entire sheet.

    Thank you for your help. If my description is too crude please let me know.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    This works for your example.
    Please Login or Register  to view this content.

+ 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