+ Reply to Thread
Results 1 to 9 of 9

Macro for Moving every even cell

  1. #1
    Registered User
    Join Date
    08-08-2019
    Location
    uk
    MS-Off Ver
    2010
    Posts
    3

    Macro for Moving every even cell

    Hi All, was wondering whether anyone would be able to help.

    I am looking for a macro/VB of how to move every even cell (see attached) to another cell.

    For example on the image, A252 to B251 which can be done with a click of a button. This would be a huge time saver for me, as I am having to cut and paste ever cell at the moment and i'm sure there are some genius's here who are just laughing at me! lol

    Capture.PNG

    if anybody can help, I would greatly appreciate it.

    Wayne

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Macro for Moving every even cell

    Hi Wayne,

    Not a problem, but we need to know are there headers, etc.... it would be best if you attach a sample workbook:


    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    I'm also curious whether you would want those blank rows removed as well.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Macro for Moving every even cell

    Hi & welcome to the board.
    How about
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-08-2019
    Location
    uk
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro for Moving every even cell

    Hi Arkadi, yes we would need the blank rows removing as well.

    Thankyou

  5. #5
    Registered User
    Join Date
    07-21-2019
    Location
    Italy
    MS-Off Ver
    2016
    Posts
    58

    Re: Macro for Moving every even cell

    Hi,
    try this
    Please Login or Register  to view this content.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: Macro for Moving every even cell

    Something like this should work...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Macro for Moving every even cell

    Modified version of my code to remove the blank rows
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    08-08-2019
    Location
    uk
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro for Moving every even cell

    You guys are genius! you've just saved me hours and hours of work! thank you so much xx

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Macro for Moving every even cell

    You're welcome & thanks for the feedback

+ 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. Macro to check for empty cell and moving other cell's content
    By lzechariah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2018, 04:34 PM
  2. [SOLVED] Macro for moving to a location that I type in a cell C4
    By AkitaAttackDog in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2016, 10:47 AM
  3. Automatically moving cell references in a macro
    By scoopreardon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2014, 01:29 AM
  4. [SOLVED] Macro to find word in cell and moving to new cell.
    By esahc54 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-15-2013, 01:48 PM
  5. [SOLVED] Macro based on cell value; moving to the next task...
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-23-2013, 09:48 AM
  6. Replies: 0
    Last Post: 05-21-2012, 06:59 AM
  7. Moving text to another cell dynamically with macro
    By Hansel2000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2010, 03:38 AM

Tags for this Thread

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