+ Reply to Thread
Results 1 to 19 of 19

Delete whole row

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    36

    Delete whole row

    Hi Guys,

    I need a small help from you guys, I have a excel file where i am importing data from different files. What i need is to delete the whole row when the user write "Done" on the last column called 'AT'.

    Like this:

    Name ID Status

    Abdul 1 Done
    Rag 2 Done
    Roh 3 Undone
    Zai 4 Done

    So the result would be like this

    Roh 3 Undone.

    When we run the macro.

    Kindly help me in this matter.


    There is another post going on with the same Question.

    here is the link .

    http://www.mrexcel.com/forum/excel-q...matically.html
    Last edited by abdullahsikandar; 04-21-2014 at 11:54 AM.

  2. #2
    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,420

    Re: Delete whole row

    Switch on Autofilter. Filter on column AT for "Done". Delete the visible rows. Switch off Autofilter. Finished


    Regards, TMS
    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


  3. #3
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Delete whole row

    Never mind.

  4. #4
    Registered User
    Join Date
    02-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Delete whole row

    Thanks for your reply but i need a macro that will delete the whole row when we press the save button, if the last column 'AT' say "Done".

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Delete whole row

    why should it be an macro if you have a very good solution offered in #2 by TMS?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    02-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Delete whole row

    Because we are importing the data from other files so we can use it at the same time. Data is too big it will take so much time to do on that way.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Delete whole row

    Maybe you can also reply in your answer that you have an solution on another forum (and post that solution on this forum).

  8. #8
    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,420

    Re: Delete whole row

    OK, a macro ... that uses Autofilter and deletes the visible rows ...

    Please Login or Register  to view this content.

    Regards, TMS

  9. #9
    Registered User
    Join Date
    02-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Delete whole row

    I don`t have an accurate solution which i want....

  10. #10
    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,420

    Re: Delete whole row

    @oeldere: can you provide a link?

  11. #11
    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,420

    Re: Delete whole row

    I don`t have an accurate solution which i want....
    That isn't really the point. If you post in other forums, you should provide links so that people don't waste time and duplicat effort.

    With 25 posts, you should know better and have read and understood the forum rules.

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  12. #12
    Registered User
    Join Date
    02-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Delete whole row

    Thanks for your reply its working but again it have one problem when all the records are Undone but its showing up the error so what i want that for example. IF the whole column have "Undone" so it will pop up the message "No Message Deleted because the status is Undone" and if there are any null column in between so either it should converts the column in Red color so pop up the message which will say " Kindly fill the blank columns".

    Thanks in advance...

  13. #13
    Registered User
    Join Date
    02-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Delete whole row

    Ops, I am sorry in that case i will provide the link in this Post. I have no idea about this rule. I am sorry for that, I am gonna edit my message and add the Link in that.

  14. #14
    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,420

    Re: Delete whole row

    Please Login or Register  to view this content.

  15. #15
    Registered User
    Join Date
    02-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Delete whole row

    @TMS, Thanks for letting me know about this rule and sorry for that thing. I added the link of that forum in the top of my message.

  16. #16
    Registered User
    Join Date
    02-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Delete whole row

    Thanks for your help. Its working

  17. #17
    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,420

    Re: Delete whole row

    Seems like you've upset the people over on that other forum.

    You probably need to take some time out to read the rules on all the forums where you ask questions. A lot of the same people go to all the same places so it will not go unnoticed.


    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.

  18. #18
    Registered User
    Join Date
    02-06-2014
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Delete whole row

    I would like to Thanks for everyone for replying on my post and helping me ....

  19. #19
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Delete whole row

    @TMS
    Please Login or Register  to view this content.
    http://www.mrexcel.com/forum/excel-q...matically.html

+ 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. Replies: 1
    Last Post: 11-30-2013, 06:37 AM
  2. Macro to delete certain columns and delete rows based on time in another column
    By beepbeep27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2012, 11:47 AM
  3. [SOLVED] Macro to delete sheets and saves remaining file does not properly delete module
    By pherrero in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2005, 08:12 PM
  4. Replies: 0
    Last Post: 06-21-2005, 01:05 PM
  5. [SOLVED] Re: Macro to delete sheets and saves remaining file does not properly delete module
    By pherrero in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2005, 01:05 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