+ Reply to Thread
Results 1 to 8 of 8

How can I make a certain cell in a sheet mandatory for a user to complete

  1. #1
    Registered User
    Join Date
    05-04-2015
    Location
    South Africa
    MS-Off Ver
    office for Mac
    Posts
    97

    Question How can I make a certain cell in a sheet mandatory for a user to complete

    Hi All,

    I hope someone can help me. I have specific cells in certain sheets to be completed by the user before they can move away from the sheet. I gather that I have to build a macro for this. The one specific sheet I am referring to Cell "C103" is crucial to complete. I do have the following macro already on this sheet as follows for other functions:

    Please Login or Register  to view this content.

    Can someone please assist me in building the new macro into the existing one?

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How can I make a certain cell in a sheet mandatory for a user to complete

    It wouldn't be a part of the existing one. You can add another which is a Worksheet_Deactivate() event.

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    05-04-2015
    Location
    South Africa
    MS-Off Ver
    office for Mac
    Posts
    97

    Re: How can I make a certain cell in a sheet mandatory for a user to complete

    Thank you sooo much,this worked perfectly.

    How can I create a message which will show as soon as the user access a specific worksheet i.e to give them instructions how to complete the sheet?

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How can I make a certain cell in a sheet mandatory for a user to complete

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-04-2015
    Location
    South Africa
    MS-Off Ver
    office for Mac
    Posts
    97

    Re: How can I make a certain cell in a sheet mandatory for a user to complete

    That works perfectly, thank you! How do I ensure that a user only sees this message the first time it visits the sheet, and not everytime when it toggles between the sheets?

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How can I make a certain cell in a sheet mandatory for a user to complete

    You could do it by declaring a variable as public, which retains its value for the life of the application. Declarations go at the very top of a module.

    If this displays once, it won't show again during that application's instance.

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How can I make a certain cell in a sheet mandatory for a user to complete

    daffodil11 has a better solution on the last question. This uses a helper cell in A1.

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

  8. #8
    Registered User
    Join Date
    05-04-2015
    Location
    South Africa
    MS-Off Ver
    office for Mac
    Posts
    97

    Re: How can I make a certain cell in a sheet mandatory for a user to complete

    Thank you soo much - this worked perfectly!!! I appreciate all your assistance!

+ 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. 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
  2. Replies: 2
    Last Post: 02-27-2008, 01:17 PM
  3. How can I make a cell mandatory?
    By eakkas@gmail.com in forum Excel General
    Replies: 3
    Last Post: 02-06-2006, 07:10 PM
  4. [SOLVED] How can I make a cell mandatory and only accept a Y or N?
    By Ron Rosenfeld in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 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