+ Reply to Thread
Results 1 to 10 of 10

Moving Rows on excel

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    Moving Rows on excel

    Hi Guys, i know that people have figured this out for me in the past 'Event21' inparticular.

    I have a Excel Sheet with 4 worksheets named 'Current User' 'HP' 'To Call' and ' Non Users'

    All Worksheets have the Same headers in them,,, 'School' 'Email' 'Call' 'Visit' 'Booking' 'Area' 'Type'

    The Type header has a list drop down box with the the names of all 4 worksheets.

    When i select for example 'HP' in the 'Type' column i want the whole row to move to that worksheet and then be deleted from the current worksheet it is in..

    ANy Questions please ask THANKS GUYS

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Moving Rows on excel

    Hi,

    Please upload your workbook so that we can see the request in context. It will require a macro to do this.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-05-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Moving Rows on excel

    Hi Please find workbook

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Moving Rows on excel

    Hi Dean,

    You can add the following code to the workbook module. If you had named the worksheets identical to the values provided in the drop down box the code would have been much shorter and simpler, now a select case is needed to determine the name of the target worksheet.

    Please Login or Register  to view this content.
    If you like my contribution click the star icon!

  5. #5
    Registered User
    Join Date
    12-05-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Moving Rows on excel

    Hi I cannot seem to get it to work. i have edited so that the values in the drop down are the same as the worksheet. thanks.
    Attached Files Attached Files

  6. #6
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Moving Rows on excel

    Hi Dean,

    The worksheet names still differ from the values provided in the drop down list, and the code provided by me is not present in the workbook module. What has happened?

  7. #7
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Moving Rows on excel

    Dean,

    I have renamed the worksheets and have added the necessary code. Note that the "move" of the row only happens when the cursor leaves the cell after the value has been selected and not immediately when selecting the dropdown value
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-05-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Moving Rows on excel

    sorry attached the wrong file.
    thanks
    Attached Files Attached Files

  9. #9
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Moving Rows on excel

    Hi Dea,

    Please check post #7 as it already contains the revised workbook including the working code

  10. #10
    Registered User
    Join Date
    12-05-2012
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Moving Rows on excel

    awesome thanks very much

+ 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