+ Reply to Thread
Results 1 to 12 of 12

Move the prefered row from one sheet to another

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    abu dhabi
    MS-Off Ver
    Excel 2010
    Posts
    28

    Move the prefered row from one sheet to another

    I need to provide list of priority to two or more machines in one worksheet. Once the status is "Completed", then the particular row values has to move to next worksheet in a list. Before moving it should ask for a pop up message. Can someone help with a macro.
    attached is the sample file.
    Attached Files Attached Files

  2. #2
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Move the prefered row from one sheet to another

    What would the pup up message be? And what action would be taken if Yes is seleceted and what action if Cancle is selected?

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    abu dhabi
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Move the prefered row from one sheet to another

    If in the pop up message i hit "Yes" then it has to be moved, and if hit "No" then clear the cell content "completed".

  4. #4
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Move the prefered row from one sheet to another

    So give me one more answer.
    When you insert Completed should the macro check if the Part No is already on sheet 2 and then not copy it?
    Or should it check if the WO number is already there and if it is then not copy the info to sheet 2?

  5. #5
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Move the prefered row from one sheet to another

    Anyway try this then:
    Attached Files Attached Files

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Move the prefered row from one sheet to another

    Do you mean like this:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Move the prefered row from one sheet to another

    No...That just clears the content
    He wants it so when say in cell I10 he writes "Completed" then the msgbox is poped up and askes if you want it copyed or not.
    The action in my workbook is taken when he writes "Completed" say in range I10 and presses enter and then moves back to I10 from I11.
    Can't the macro run when you enter Completed in a cell in range I10 and hit enter? So you don't have to move back to the cell you just entered Completed in?
    Hope you know what I mean

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Move the prefered row from one sheet to another

    Hope this helps...
    Instead of MsgBox "Do something" you can write your code

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-25-2012
    Location
    abu dhabi
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Move the prefered row from one sheet to another

    Its not necessary to check whether the list is there in sheet2. As there are chances the same part no: and wo no: can repeat.
    I need to also include the M/c no: in sheet 2 according to the data in sheet1.

  10. #10
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Move the prefered row from one sheet to another

    sreejeshc...
    Well this now does what you wanted....but when you insert Completed then press enter and press up so you move back to the cell where you inserted Completed.
    And don't know how to make it work when you write Completed and hit enter
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-25-2012
    Location
    abu dhabi
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Move the prefered row from one sheet to another

    Thanks Guys.........

  12. #12
    Registered User
    Join Date
    09-25-2012
    Location
    abu dhabi
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Move the prefered row from one sheet to another

    Hi Stojko89,

    Can i get the copied rows in sheet"c" as paste special values only

+ 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