+ Reply to Thread
Results 1 to 11 of 11

making certain cells obligatory/madatory in a row

  1. #1
    Registered User
    Join Date
    04-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    12

    making certain cells obligatory/madatory in a row

    Hi,
    I was looking for a solution for days but cannot find exactly what I'm looking for.

    I have a file (log for received calls in a call center) where each row represents a call. Once the call is completed, agent is supposed to fill out almost every cell in a row and then put "completed" in the column Q. I want to make certain cells mandatory. And I want a code that verifies if those mandatory cells are not empty in the row once it has been put "completed". If they are empty - user gets a message and cannot continue.
    The cells that are supposed to be mandatory are E, F, K, and N.

    Also (that's an extra), I would like the code (after the row is marked "completed") to check if cell E in a row is "annulé" and if it is - automatically put "annulé" in all cells in the row (from C to P).


    Please, Excel gurus, I really need your help....

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: making certain cells obligatory/madatory in a row

    Hi talochka

    This Code is not tested as you've not posted a sample file. Place the Code in the Appropriate Sheet Module...it'll be triggered by a change in Column Q.
    Please Login or Register  to view this content.
    Last edited by jaslake; 07-23-2013 at 07:39 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    04-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: making certain cells obligatory/madatory in a row

    Hi jaslake,

    The code is working perfectly with making columns mandatory. But for the "annulé" part - it doesn't fill out the rest of the columns with "annulé". Could it be because cells have a data validation rule (they all have the option "annulé" though)?

    Here is my original file, without your code. It already has some code that protects the row once the call is completed. I do not know VBA very well and I cannot integrate your code so that it doesn't interfere with the one I've already have.

    Your help is greatly appreciated!!
    Attached Files Attached Files

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: making certain cells obligatory/madatory in a row

    Hi talochka

    Try the attached...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: making certain cells obligatory/madatory in a row

    Hi John,
    sorry, I didn't attach the right file - here is the file with my existing code.

    p.s. I've tried your sample and it doesn't put "annulé" in all cells once I choose "annulé" in cell E and then "completed" in cell Q.
    Attached Files Attached Files
    Last edited by talochka; 07-25-2013 at 03:47 PM.

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: making certain cells obligatory/madatory in a row

    Hi talochka

    If I understood what your original Change Event Code was doing the Code in the attached appears to do as you require.
    mandatory are E, F, K, and N
    check if cell E in a row is "annulé" and if it is - automatically put "annulé" in all cells in the row (from C to P).
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: making certain cells obligatory/madatory in a row

    Hi John,

    It does work perfectly except for the "annulé" part. I've opened the file and when I choose "annulé" in the column E and then "complété" in column Q - I get a message "Missing data". So it doesn't automatically fill out the whole row with "annulé". If it is too complicated I would be happy with another solution - for example if you choose "annulé" in column E then you don't have to fill out the rest and can simply put status "complété".

    Your help is greatly appreciated!!

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: making certain cells obligatory/madatory in a row

    Hi talochka

    The Code is not designed to
    automatically fill out the whole row with "annulé".
    if "annulé" is entered in Column E. It's designed to do so AFTER the fact. Sorry, I misunderstood.

    I'll revise the Code to do so. However, what if the user selects "annulé" in Column E by mistake and wants to make a change? What should happen? Should the other Columns be cleared?

  9. #9
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: making certain cells obligatory/madatory in a row

    Hi talochka

    With this Code, if the user enters "annulé" in Column E, Cells C through P are also filled with "annulé" and Cell Q is filled with "complété". You'll need to define for me what happens if the User changes their mind
    what if the user selects "annulé" in Column E by mistake and wants to make a change? What should happen?
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    04-17-2013
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: making certain cells obligatory/madatory in a row

    It works perfectly!!!
    As for the scenario where the user changes his mind - well, too bad for him, his mistake - he'll have to correct it manually

    Thank you for you help!!! I really appreciate it!!

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: making certain cells obligatory/madatory in a row

    You're welcome...glad I could help. Thanks for the Rep.

+ 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. Making multiple cells equal to other cells
    By forrestcupp in forum Excel General
    Replies: 5
    Last Post: 12-31-2013, 03:19 PM
  2. Replies: 7
    Last Post: 06-11-2012, 07:41 AM
  3. Dropdown menu and Autofill
    By neilq5 in forum Excel General
    Replies: 1
    Last Post: 06-11-2012, 06:24 AM
  4. Replies: 9
    Last Post: 06-09-2011, 10:24 PM
  5. [SOLVED] compulsory/madatory cell
    By sedonovan in forum Excel General
    Replies: 1
    Last Post: 06-22-2006, 03:00 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