+ Reply to Thread
Results 1 to 8 of 8

Creating a mandatory Field Before Saving a file

  1. #1
    Registered User
    Join Date
    08-22-2013
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Creating a mandatory Field Before Saving a file

    Hi,
    I need help with coding mandatory field in Excel 2010.
    This is a code that i have for having a master workbook, and saving it in different folder so my employee cant access it

    Please Login or Register  to view this content.
    I have found a code for mandatory cell, but it creates a second macro and i was not able to link the two.
    The mandatory field has drop down of employee's and it is located in the cells D78:E78.
    Please help!
    Thank you
    Last edited by dgavranovic; 08-22-2013 at 03:03 PM.

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

    Re: Creating a mandatory Field Before Saving a file

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here


    Try something like this...

    Please Login or Register  to view this content.
    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
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Creating a mandatory Field Before Saving a file

    I am not quite sure what you want. Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-22-2013
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Creating a mandatory Field Before Saving a file

    If the cells D78:E78 are empty, and you click on Save button (that i have created as macro), I would like the message box to appear saying that they need to put their name in the field.

  5. #5
    Registered User
    Join Date
    08-22-2013
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Creating a mandatory Field Before Saving a file

    Thank you
    stnkynts
    Please Login or Register  to view this content.
    This helped a lot.
    Just need to tweak it where to save!
    Last edited by dgavranovic; 08-22-2013 at 03:03 PM.

  6. #6
    Registered User
    Join Date
    08-22-2013
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Creating a mandatory Field Before Saving a file

    Thank you AlphaFrog
    This one helped as well.

  7. #7
    Registered User
    Join Date
    08-22-2013
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Creating a mandatory Field Before Saving a file

    How do I add red color to that box?

  8. #8
    Registered User
    Join Date
    08-22-2013
    Location
    Winnipeg, Canada
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Creating a mandatory Field Before Saving a file

    Thank you AlphaFrog, I am new to this!
    Sorry for inconvenience.

+ 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] Mandatory Field or unable to save based another field having data
    By jingles9 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-18-2013, 11:18 AM
  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. Need code to make completion of certain cells mandatory before saving file
    By SBeirne in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2012, 12:04 PM
  4. Saving Template/workbook With Mandatory Field
    By JBeaucaire in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2008, 02:43 PM
  5. Mandatory fields check before saving the file
    By sudheesh.e in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2008, 12: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