+ Reply to Thread
Results 1 to 4 of 4

Mandatory and interdependant fields

  1. #1
    Registered User
    Join Date
    08-20-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    2010
    Posts
    2

    Cool Mandatory and interdependant fields

    Hi all,

    this is my first thread so be gentle to me . I am not so new to VBA, but i am a little bit stuck. I have two questions.

    I have a form (Excel, of course) which needs to be filled following some criteria. I have a filed name "Clause of non-compete" and you have to choose between YES and NO. This field has to be mandatory. I did that with the following code (see below). Now i have another field that says: If YES, should it be maintained? How can i make the second field to be dependant on the first one and mandatory? I want it to be mandatory only when there is Yes in the first field (merged field N35:O35).

    Can you please help me on this?


    Thanks,

    Dan


    Please Login or Register  to view this content.
    Moderator Note:

    Pls take a look to forum rules. No 3 of these requires to use code tags around your codes. THIS time i added for you.
    Last edited by Fotis1991; 08-21-2014 at 09:53 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Mandatory and interdependant fields

    Hi, 2Real,

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    08-20-2014
    Location
    Bucharest, Romania
    MS-Off Ver
    2010
    Posts
    2

    Re: Mandatory and interdependant fields

    Hallo Holger,

    please see attached now. Sorry for the delay in my answer.

    Vielen Dank

    Dan
    Attached Files Attached Files

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Mandatory and interdependant fields

    Hi, Dan,

    code for ThisWorkbook:
    Please Login or Register  to view this content.
    Code behind sheet "Formulaire DEPART" adapted to match row 2:
    Please Login or Register  to view this content.
    Ciao,
    Holger

+ 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. VBA - Help With Mandatory Fields
    By crayhons in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 06-26-2013, 01:07 PM
  2. 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
  3. Mandatory Fields
    By i82 in forum Excel General
    Replies: 1
    Last Post: 09-13-2012, 05:13 AM
  4. Mandatory fields
    By Konstantinos in forum Excel General
    Replies: 2
    Last Post: 03-22-2007, 09:29 AM
  5. Mandatory Fields
    By Libby in forum Excel General
    Replies: 0
    Last Post: 01-19-2005, 06:11 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