+ Reply to Thread
Results 1 to 8 of 8

Macro to delete entire roll when the cell has "CLOSED" text

  1. #1
    Forum Contributor
    Join Date
    07-28-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    298

    Macro to delete entire roll when the cell has "CLOSED" text

    Hi guys,

    It is pretty simple: the macro needs to delete the entire roll (or rowS when find more than 1) when find the text "CLOSED" in the column H, in the sheet "Orders".

    I found a similar code in the net:
    Please Login or Register  to view this content.
    Any idea?

    Thanks folks
    Last edited by ricdamiani; 08-12-2013 at 01:59 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to delete entire roll when the cell has "CLOSED" text

    Quote Originally Posted by ricdamiani View Post
    delete the entire roll (or rowS when find more than 1) when find the text "CLOSED"
    Still the above quoted line is not clear to me Can you please explain it....


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Macro to delete entire roll when the cell has "CLOSED" text

    try this:

    Please Login or Register  to view this content.
    btw, when you said delete, do you mean clear the contents of the row? or delete the entire row and move up the rest? .... if this doesn't work.. please post a sample file..
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  4. #4
    Forum Contributor
    Join Date
    07-28-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    298

    Re: Macro to delete entire roll when the cell has "CLOSED" text

    Quote Originally Posted by :) Sixthsense :) View Post
    Still the above quoted line is not clear to me Can you please explain it....
    Hi Sixthense,
    Thank you for your replay

    In my sheet I have several rows, and in the column H it will be or "OPEN" or "CLOSED" written inside the cell.
    The macro will delete the rows which has the text "CLOSED" into the cell.

    Did you understand? If you want I can do a sample sheet for you

  5. #5
    Forum Contributor
    Join Date
    07-28-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    298

    Re: Macro to delete entire roll when the cell has "CLOSED" text

    Quote Originally Posted by ag273n View Post
    try this:

    Please Login or Register  to view this content.
    btw, when you said delete, do you mean clear the contents of the row? or delete the entire row and move up the rest? .... if this doesn't work.. please post a sample file..
    Hi ag273n,
    Thanks for the raply as well

    Yes I mean delete the entire roll.
    The macro worked partly.

    It deleted 2 in 2 rows...

    Did you understand? If you still didn't get the idea let me know and I will attach a sample for you

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to delete entire roll when the cell has "CLOSED" text

    Thanks for the brief, try the below code...

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    07-28-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    298

    Re: Macro to delete entire roll when the cell has "CLOSED" text

    Yes it is working!
    Thanks sixthsense

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Macro to delete entire roll when the cell has "CLOSED" text

    Glad it helps you and thanks for the feedback

+ 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. "Form and macro" to delete "Active" cell contents.
    By wanty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2013, 11:33 PM
  2. [SOLVED] Macro to delete entire row if "C" is zero
    By alpha608 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-29-2013, 02:22 AM
  3. [SOLVED] Macro to delete entire row if cell contains the word "total" or "Total"
    By theatricalveggie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2011, 12:38 PM
  4. Replies: 5
    Last Post: 08-29-2009, 10:14 PM
  5. Disabling "Entire &row/&column" in Delete/Insert Cell
    By Gap in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2005, 12:06 PM

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