+ Reply to Thread
Results 1 to 3 of 3

How to make it IMPOSSIBLE TO CLOSE Workbook until mandatory cells r nt filled?

  1. #1
    Registered User
    Join Date
    07-13-2013
    Location
    Austin
    MS-Off Ver
    Excel 2007
    Posts
    30

    How to make it IMPOSSIBLE TO CLOSE Workbook until mandatory cells r nt filled?

    Hi All,

    I have a worksheet in which some cells are mandatory to be filled by the user.

    I require that the sheet MUST not save untill all such mandatory fields are filled.

    Kindly advice.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to make it IMPOSSIBLE TO CLOSE Workbook until mandatory cells r nt filled?

    You can use an EVENT macro in the ThisWorkbook module for this.

    Please Login or Register  to view this content.

    Notice the technique lists the cell addresses on each important sheet by name, then does a COUNT to make sure they all have something in them.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-13-2013
    Location
    Austin
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: How to make it IMPOSSIBLE TO CLOSE Workbook until mandatory cells r nt filled?

    Hey it worked....Thanks a lot..

+ 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. 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
  2. How to make data in cells mandatory?
    By r.kondapalli in forum Excel General
    Replies: 8
    Last Post: 01-18-2011, 11:30 AM
  3. 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
  4. Need Help | VBA (can't close before all mandatory cell are filled up)
    By trajab in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2009, 05:52 AM
  5. 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

Tags for this Thread

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