+ Reply to Thread
Results 1 to 11 of 11

mandatory complete other cells if one cell is compleated

  1. #1
    Registered User
    Join Date
    01-12-2016
    Location
    Brasov,Romania
    MS-Off Ver
    office 2013
    Posts
    8

    mandatory complete other cells if one cell is compleated

    Hello,

    i want to do the next move:

    For example: When (cell A2) is completed , mandatory have to complet cells A2, G2 , I2 and so on and if all cells are not completed you cannot save and you get a message (Ex. you have to fill A2 ,G2,I2).

    And if cell A2 si not completed do nothing, should work only when you start to write in A2

    can someone please help me with this issue?(maybe with a VBA code)

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: mandatory complete other cells if one cell is compleated

    Hi,

    I believe that you need something like this that runs the check when you try to save the workbook.

    Please Login or Register  to view this content.
    Book1.xlsm

    Best of luck,
    Stephen
    Last edited by spitfireblue; 01-15-2016 at 07:35 AM. Reason: Add Attachment

  3. #3
    Registered User
    Join Date
    01-12-2016
    Location
    Brasov,Romania
    MS-Off Ver
    office 2013
    Posts
    8

    Re: mandatory complete other cells if one cell is compleated

    thank you verry much , its working but i have still a problem.

    first i explain you what is with this excel
    more users have to complete this sheet but some user starts to complete but not finishes, and they save it incomplet.
    i want the code working when a user starts to complete in a new row (ex . if cells A3:A400 are filled automatically the VBA code works but if Cells A3:A400 are empty nothing have to happens - the code should work just when they start to write in cells A3:A400)

    Thank you

  4. #4
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: mandatory complete other cells if one cell is compleated

    Ok... so this will start at A2 and will continue down column A until it finds a blank, checking to ensure the matching cells in G & I have a value.

    Please Login or Register  to view this content.
    You may want to replace the first "Set cell = cell.Offset(1, 0)" with "Exit Sub" to exit if it finds one error.

    Stephen

  5. #5
    Registered User
    Join Date
    01-12-2016
    Location
    Brasov,Romania
    MS-Off Ver
    office 2013
    Posts
    8

    Re: mandatory complete other cells if one cell is compleated

    hello,

    please see attached(an print screen) of what i'm trying to do


    When an user fill the cell "B2" is mandatory for him to fill the next cells( E2, F2 , I2 and M2 - if this cells are not filled ,when it saves gives an error) and if the other cells remain empty is not a problem.

    and this rule must apply for everyone that starts to fill first cell(B2 , 3,4,5...) but just when is filled, if not filed nothing should happens


    can someone please help me?

    Thank you!
    Attached Images Attached Images

  6. #6
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: mandatory complete other cells if one cell is compleated

    Hi,
    I think this is the code that you need.

    Please Login or Register  to view this content.
    Let me know if you have any issues.
    Stephen

  7. #7
    Registered User
    Join Date
    01-12-2016
    Location
    Brasov,Romania
    MS-Off Ver
    office 2013
    Posts
    8

    Re: mandatory complete other cells if one cell is compleated

    Yes ,it's working
    thank you very much for help!

  8. #8
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: mandatory complete other cells if one cell is compleated

    No problem

  9. #9
    Registered User
    Join Date
    01-12-2016
    Location
    Brasov,Romania
    MS-Off Ver
    office 2013
    Posts
    8

    Re: mandatory complete other cells if one cell is compleated

    one more thing

    it is posible ,for example if F2 and M2 or just one of thiss cells are not filled ,when you got the message (error) to show exactly what cell or cells are not filled?

    Thank you and that's it :D

  10. #10
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: mandatory complete other cells if one cell is compleated

    Please Login or Register  to view this content.

  11. #11
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624

    Re: mandatory complete other cells if one cell is compleated

    Please Login or Register  to view this content.
    Ben Van Johnson

+ 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] How can I make a certain cell in a sheet mandatory for a user to complete
    By ramatthews in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-08-2015, 03:13 PM
  2. VBA code for mandatory cells - only allow to save if complete
    By sqinm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2014, 11:19 PM
  3. Make several cells mandatory if a cell in a range is filled out
    By steeveho in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2013, 06:49 AM
  4. Mandatory field required message when user skips mandatory fields
    By Bharathi27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2013, 05:12 AM
  5. To make several cells mandatory based on other cell input.
    By nukecity83 in forum Excel General
    Replies: 1
    Last Post: 10-13-2009, 05:35 PM
  6. mandatory cells only if another cell is filled
    By RA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2006, 12:45 PM
  7. [SOLVED] Making cells mandatory to fill in if a previous cell contains info
    By leonardo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-24-2006, 02:50 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