+ Reply to Thread
Results 1 to 13 of 13

Excel 2003 Deleting a row and moving it to another sheet

  1. #1
    Registered User
    Join Date
    08-22-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2003
    Posts
    6

    Excel 2003 Deleting a row and moving it to another sheet

    I know this question has been asked several times before, but since I am not as familiar with Excel as the users here I haven't been able to get any of the solutions provided to work for me. In Column I there is a Drop Down List with the values Open, Closed, and Completed. When I switch that to Completed I would like that row to be copied, moved to the Completed Sheet, and then removed from the Current sheet. Afterwards I would like to have all the rows moved up by 1 to avoid any blank rows. The solutions I have tried previously all encountered an error "Run-time error '13': Type Mismatch". When I click on Debug it shows that it is conflicting with my State color-coding script. The color-coding script works fine by itself and never encounters any issues. I'm not sure if this is something that will need to be changed or if I maybe messed something up when entering the code. Anyone able to help me figure this out?

    I have attached a sample version of my spreadsheet so you can get a better idea of what is going on.
    Attached Files Attached Files
    Last edited by DCarmen352; 08-24-2012 at 05:34 PM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel 2003 Deleting a row and moving it to another sheet

    can you attach a sample file with almost 10 rows compiled ?
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    08-22-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Excel 2003 Deleting a row and moving it to another sheet

    Here is a modified version of that Test sheet with 12 rows of information.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-22-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Excel 2003 Deleting a row and moving it to another sheet

    Any ideas or suggestions so far?

  5. #5
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel 2003 Deleting a row and moving it to another sheet

    What happens if you switch wrongly to Completed ?
    I think it's better to add a button for moving all the completed lines

  6. #6
    Registered User
    Join Date
    08-22-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Excel 2003 Deleting a row and moving it to another sheet

    I would be fine with a button to move the completed lines as well. Just as long as it can still move the remaining rows up to prevent any gaps.
    Last edited by Cutter; 08-30-2012 at 08:18 PM. Reason: Removed whole post quote

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel 2003 Deleting a row and moving it to another sheet

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    08-22-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Excel 2003 Deleting a row and moving it to another sheet

    This works for a single line, but when I attempt to use the button for a second line of information (My cases are closed at varying intervals), it overlaps the first one. I'm trying to maintain all that information.

  9. #9
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel 2003 Deleting a row and moving it to another sheet

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    08-22-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Excel 2003 Deleting a row and moving it to another sheet

    Hey Patel,

    I appreciate all the help so far. I still seem to be having an issue with the script however. It does copy a second line now, but when I attempted a 3rd line has basically the same issue. It now overwrites the second line instead of the 1st. Here is what I have, exactly (I've removed a few sheets in my Workbook so it's down to just Current (The sheet with my main cases) and Completed (For cases I've already finished)).

    Please Login or Register  to view this content.
    Is there maybe something that I mixed up to cause it to not work properly?

  11. #11
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel 2003 Deleting a row and moving it to another sheet

    I don't know, attach the file again

  12. #12
    Registered User
    Join Date
    08-22-2012
    Location
    Florida, US
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Excel 2003 Deleting a row and moving it to another sheet

    Quote Originally Posted by patel45 View Post
    I don't know, attach the file again
    Sorry, work has been a bit hectic. I've attached an updated version of the test sheet.
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel 2003 Deleting a row and moving it to another sheet

    the line
    Please Login or Register  to view this content.
    must be
    Please Login or Register  to view this content.
    why did you change ?

    you have also to modify the macro Private Sub Worksheet_Change(ByVal Target As Range) on sheet Current
    Please Login or Register  to view this content.
    and remove it from others sheets.
    Last edited by patel45; 09-10-2012 at 02:08 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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