+ Reply to Thread
Results 1 to 5 of 5

Move selected cell to the next free cell to the right (macro)

  1. #1
    Registered User
    Join Date
    10-21-2018
    Location
    Lincoln,uk
    MS-Off Ver
    2016
    Posts
    2

    Move selected cell to the next free cell to the right (macro)

    Hi,

    I am trying to create a tracker for work.

    The job we are doing has got multiple operations. I have listed the operations in Cell A1 to L1.

    Under each operation serial numbers are listed.

    I would like a macro button that moves the active cell to next free cell in the next column (next operation) and then sort the numbers.

    Hope this makes sense.

    Chris

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Move selected cell to the next free cell to the right (macro)

    Quote Originally Posted by chris1896 View Post
    Hi,

    I am trying to create a tracker for work.

    The job we are doing has got multiple operations. I have listed the operations in Cell A1 to L1.

    Under each operation serial numbers are listed.

    I would like a macro button that moves the active cell to next free cell in the next column (next operation) and then sort the numbers.

    Hope this makes sense.

    Chris
    By 'move' do you mean cut and paste or just copy and paste?
    Which numbers? Columns? Rows? Range?
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    10-21-2018
    Location
    Lincoln,uk
    MS-Off Ver
    2016
    Posts
    2
    Quote Originally Posted by JLGWhiz View Post
    By 'move' do you mean cut and paste or just copy and paste?
    Which numbers? Columns? Rows? Range?
    I mean cut and paste. Let say I have got numbers from A2 to A30 and I want to cut A7 into the next free cell in column B. I might also have something in C17 and want to cut and past it into column D

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Move selected cell to the next free cell to the right (macro)

    Could you post a workbook with an example of before and after?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Move selected cell to the next free cell to the right (macro)

    that would be easy enough.
    Please Login or Register  to view this content.
    But what about the sort?

+ 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 select, move to a new location and delete the selected cell
    By plumberef in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-11-2016, 03:25 AM
  2. need function or macro to move the cursor to the selected cell.
    By Giri.hb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-08-2016, 06:06 AM
  3. [SOLVED] Macro to move visible cells up one row in a selected cell
    By ediman16 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2015, 05:34 AM
  4. [SOLVED] Macro to move any selected cell to a specific column on the same row
    By Jonah Mulski in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-30-2013, 12:23 PM
  5. Replies: 1
    Last Post: 04-18-2013, 05:19 PM
  6. Move on cell right form selected cell....
    By eirikst in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2007, 08:52 AM
  7. [SOLVED] Move contents of selected cell down one, and to the left one cell?
    By Albert Einstein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2006, 01:20 PM

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