+ Reply to Thread
Results 1 to 2 of 2

VBA code to ensure mandatory fields are filled in before send email??? Many thanks!!!!

  1. #1
    Registered User
    Join Date
    07-09-2017
    Location
    United Kingdom
    MS-Off Ver
    2010
    Posts
    39

    VBA code to ensure mandatory fields are filled in before send email??? Many thanks!!!!

    Below is my workbook attached.

    I would like the user to fill in the mandatory fields before selecting the Send button on sheet.

    If mandatory fields are not filled in on sheet a MsgBox will appear.


    So far I have only managed to code the send email button and if data is not entered in cell I7, i would like to please have help on how to code to ensure that other mandatory fields are filled.

    Below i have attached my workbook.

    Many thanks!!!


    Kind regards,

    Kamal Rajput
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: VBA code to ensure mandatory fields are filled in before send email??? Many thanks!!!!

    I do my checks via code (not in the field property)
    Easier to change...

    usage:
    if IsValidForm() then SendEmails()

    Please Login or Register  to view this content.

+ 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] Ensure userform fields are filled in before continuing
    By TPDave in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2014, 09:09 AM
  2. VBA Code for Mandatory fields on multiple tabs
    By e-x-cel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2014, 01:54 AM
  3. [SOLVED] send email automatically when cells are filled-in
    By Danielle22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2013, 05:22 AM
  4. VBA Mandatory Fields before submitting worksheet to email address
    By lisbradley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2013, 07:57 PM
  5. Code to mark mandatory fields before save
    By ukhellfire in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-21-2013, 07:28 AM
  6. 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
  7. Excel Email Macro VBA - How to send an email once all required fields have been fille
    By wallacm2009 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2012, 10:51 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