+ Reply to Thread
Results 1 to 2 of 2

Stop SAVE Function IF any textbox is blank - Userforms

  1. #1
    Forum Contributor
    Join Date
    12-06-2021
    Location
    Fort Lauderdale, Florida. United States
    MS-Off Ver
    365
    Posts
    143

    Stop SAVE Function IF any textbox is blank - Userforms

    Hello!

    As you can see in the code below, i am using IF COMBOBOX1.VALUE="" THEN show a textbox warning the user that they can not proceed if they don't fill out COMBOBOX1. Can't complain, it's working perfectly.

    Problem: Now i have a Userform where we have 40 textboxes and/or Combobox(es).
    Question: Rather than having to specify EACH ONE with code (like in the sample code shown below), is there a way to syntax it so that if ANY of the 40 textboxes or comboboxes value = "" THEN stop the rest of the process and tell the user to please check their work and try again?


    Please Login or Register  to view this content.

    Thanks! Any insight would be appreciated!!

    RO

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,951

    Re: Stop SAVE Function IF any textbox is blank - Userforms

    You could use something like this:

    Please Login or Register  to view this content.
    BSB

+ 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. Stop INDIRECT function returning a 0 if cell is blank?
    By Belinea2010 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2021, 10:39 AM
  2. [SOLVED] Textbox Names on Userforms keep disappearing / going blank
    By kopite2002 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-18-2020, 05:34 AM
  3. Excel 2010 – VBA Userforms – Vlookup via Textbox, display result in another textbox
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-29-2015, 12:31 AM
  4. Want function to stop calculating when it reaches a blank cell
    By GrogRogers in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-01-2015, 03:49 PM
  5. [SOLVED] how can i write a code to stop leaving blank textbox in userform
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-03-2014, 02:44 AM
  6. Need help with Count function: Stop at next blank row
    By filterxg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2013, 09:16 PM
  7. Userform - Stop Command button working if a textbox is blank?
    By revenge4ash89 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2012, 05:52 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