+ Reply to Thread
Results 1 to 10 of 10

display message if try to delete any cell in column E which has "OK"

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    display message if try to delete any cell in column E which has "OK"

    Hi.

    I need to trigger a message tab ("Action"), if the user delete any data in the cells of column A to column J if column E contains the criterion "OK"
    Attached Images Attached Images
    Last edited by marreco; 10-13-2013 at 06:07 PM.
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: display message if try to delete any cell in column E which has "OK"

    thanks for help but I can not lock the guide.

    all cells should be free, but I need to warn the user before deleting it, qualque row cell in column E is where as "OK"

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: display message if try to delete any cell in column E which has "OK"

    Hi.
    Thank you!!
    Column_A Column_B Column_C Column_D Column_E Column_F Column_G ColumnH Column_I Column_J
    Krono -------5.000-----5.000 y---- --OK-------12/8/2013 dataF dataG dataH dataI dataF

    works, but I need the message to appear if any cell in row 1 is deleted.

    the criterion for the message to be triggered, it is column E.

    then E3 = "OK" any (A3, B3, C3, D3 etc) cell line 3, if deleted, will appear the message box.


    case E7 = "OK" any (A7, B7, C7, D7 etc.) cell line 7, if deleted, will appear the message box.


    and so on

  4. #4
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: display message if try to delete any cell in column E which has "OK"

    Hi
    could you show me an example, please?

    thank you!!

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: display message if try to delete any cell in column E which has "OK"

    Hi.

    i think
    I tried something like ...
    Please Login or Register  to view this content.
    but the code deletes the whole line, I need this to happen if the user wants to delete a cell or two or three, or a range of lines

  6. #6
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: display message if try to delete any cell in column E which has "OK"

    Hi.
    Considering the image.
    I did not understand, the message should appear if the user delete (A2, B2, C2, D2, E2, F2, G2, H2, J2) because IN E2 is with status "OK"

    In your code, msgbox is displayed if you delete any cell (A3, B3, C3, D3, E3, F3, G3, H3, J3), because AT E3 is with status "Home" Considering the image.
    I did not understand, the message should appear if the user delete (A2, B2, C2, D2, E2, F2, G2, H2, J2) because IN E2 is with status "OK"

    also the message should appear if the user delete (A5, B5, C5, D5, E5, F5, G5, H5, J5), because AT E5 is with status "OK"



    in your code, the case appears Feedback deletes any cell (A3, B3, C3, D3, E3, F3, G3, H3, J3), because E3 is ON status to "Home"
    but should not appear because E3 is supposed to "OK"

  7. #7
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: display message if try to delete any cell in column E which has "OK"

    hi.

    Any idea??

    thanks

  8. #8
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: display message if try to delete any cell in column E which has "OK"

    Hi marreco,

    Try this adaptation of Mukeshy12390's code:

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  9. #9
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: display message if try to delete any cell in column E which has "OK"

    Hi Trebor76
    I am very grateful for my help, but I noticed that once the Feedback appears, has moments that no aarece mais.de anyway thanks!!

  10. #10
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: display message if try to delete any cell in column E which has "OK"

    Thanks for the feedback and I'm glad we got it sorted

+ 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. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  2. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  3. MSoffice Outlook 2003 message to be saved in C dir with the file name "From" "Sent" "Sub"
    By shailendra0509 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2012, 01:32 AM
  4. [SOLVED] Delete row if cell in Column N equal "Different" or Column P equals "Blank"
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2012, 08:25 AM
  5. Delete rows in the result of formulas "OK" n column "J"
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-29-2012, 10:08 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