+ Reply to Thread
Results 1 to 8 of 8

New to VBA Need help on moving rows back and forth between sheets based on cell Value

  1. #1
    Registered User
    Join Date
    03-27-2016
    Location
    Akansas
    MS-Off Ver
    2013
    Posts
    13

    New to VBA Need help on moving rows back and forth between sheets based on cell Value

    I have a spreadsheet that we use to track jobs that we are working on, The main sheet is where all the info is located. what i need is that when the value in Col I2:I is changed to certain value IE... Ready, it would move entire row to that sheet, then on ready sheet if it is scheduled move to that sheet and so on. i Have wrote a VBA that currently wil move from the main page EWO to completed but do not know how to make it work on hte rest of the sheets. i have attached a copy of my worksheet any help wold be greatly appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: New to VBA Need help on moving rows back and forth between sheets based on cell Value

    You could try this in the ThisWorkbook class module. You'll have to comment or delete the code in the worksheet module

    Please Login or Register  to view this content.
    I'll leave you to test and figure if it's suitable/how it works but it depends on the actual sheet name being entered in Col I - it might be an idea to convert everything to ListObjects (Tables) and add Data Validation for the allowable choices - it'll still move if a worksheet is found but any other values will be ignored.
    Last edited by cytop; 04-24-2016 at 10:40 AM.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,935

    Re: New to VBA Need help on moving rows back and forth between sheets based on cell Value

    You certainly seem to be making life complicated for yourself. Why not leave everything where it is, maybe convert the data to a Structured Table, and then use Filter and/or Sort to list the data, and use Pivot Tables and Slicers to analyse the data.

    No VBA required. No likelihood of data going missing or getting corrupted in transit.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    03-27-2016
    Location
    Akansas
    MS-Off Ver
    2013
    Posts
    13

    Re: New to VBA Need help on moving rows back and forth between sheets based on cell Value

    well i tried that but it not working,,,,, not sure if i put it in the right spot.... Im new to this VBA lol

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,935

    Re: New to VBA Need help on moving rows back and forth between sheets based on cell Value

    It goes in the ThisWorkbook class module.

  6. #6
    Registered User
    Join Date
    03-27-2016
    Location
    Akansas
    MS-Off Ver
    2013
    Posts
    13

    Re: New to VBA Need help on moving rows back and forth between sheets based on cell Value

    Sweetness i got it figured out..... Thank you for the help i was lost and confused works like a charm now

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,935

    Re: New to VBA Need help on moving rows back and forth between sheets based on cell Value

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  8. #8
    Registered User
    Join Date
    03-27-2016
    Location
    Akansas
    MS-Off Ver
    2013
    Posts
    13

    Re: New to VBA Need help on moving rows back and forth between sheets based on cell Value

    now i just gotta work on creating a dashboard this could get interesting

+ 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. Moving data to different sheets based on cell contents
    By asml8d in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-25-2017, 04:11 PM
  2. Moving row to other sheets based on cell conten,t multiple arguements.
    By kittysmith in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-30-2015, 06:49 PM
  3. Moving rows of data to multiple sheets based on status for project pipeline
    By sthiessen85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2015, 08:55 AM
  4. [SOLVED] Moving rows of data to multiple sheets based on status
    By sthiessen85 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-18-2015, 01:21 PM
  5. [SOLVED] Moving Rows to new Tab based on many possible Cell Values
    By mmanning in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-23-2014, 06:09 AM
  6. Moving rows to specific sheets if a cell is filled
    By KWIN in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2011, 05:05 PM
  7. Moving rows based on cell contents
    By WasWodge in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2010, 11:27 AM

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