+ Reply to Thread
Results 1 to 3 of 3

Mandatory Cell Input

  1. #1
    Registered User
    Join Date
    01-13-2016
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    46

    Mandatory Cell Input

    Hi,

    I have an Excel file with Column Headers in it. This Excel file will be fill in with few rows of data by another party.
    Several columns are required. But not all are required.

    I know how to make a VBA for mandatory cell input but only for specific cells. The idea is that I don't know in advance how many rows the the other party will make. Basically when the user starts filling the first row only then specific cells from that row are required in case that the cells are left blank( by a message box or something similar-without the user to have the possibility of saving or closing the document without filling the cells required)
    As I mention I have no information about how many rows the user will fill therefore somehow it has to be dynamic.

    If someone can help with some ideas that will be very much appreciated.
    Thanks in advance

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Mandatory Cell Input

    When the user tries to save the workbook, this tests for each used cell in column A on Sheet1 if there are values in columns CDE and G.

    Please Login or Register  to view this content.
    EDIT: Paste the code in the ThisWorkbook code module.
    Last edited by AlphaFrog; 07-11-2016 at 05:00 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    01-13-2016
    Location
    Europe
    MS-Off Ver
    2013
    Posts
    46
    Thank you

+ 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 multiple cell input mandatory if initial cell has input.
    By dwporter in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-23-2017, 08:06 PM
  2. [SOLVED] Mandatory Input based on another cell
    By gaker10 in forum Excel General
    Replies: 1
    Last Post: 07-31-2015, 03:14 PM
  3. Save file using cell references & mandatory cell input
    By Plantation in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2013, 12:46 PM
  4. Replies: 14
    Last Post: 01-22-2013, 12:07 PM
  5. how to generate error message for an empty cell (mandatory input cell)
    By asankar24 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-20-2012, 12:37 PM
  6. Mandatory cell input with drop down menue
    By Hermann3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2012, 04:57 AM
  7. 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

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