+ Reply to Thread
Results 1 to 2 of 2

Having problem with userform checking for blank fields with comboboxes

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    Coventry, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Having problem with userform checking for blank fields with comboboxes

    Hi there,
    I would love someone to point me in the right direction please I have a user form with some combobox and text fields that users are required to choose a value from. When the form loads they are blank. I wrote some code (below is just one bit and it was replicated through each of the fields ;

    Please Login or Register  to view this content.
    Ok - if a user skips a field and then hits the button to save the code is written to check each field and I don't get an error.
    But - if the user chooses an entry from the drop down and then deletes it, I get an invalid property error

    The same applies for a textbox field too;

    Please Login or Register  to view this content.
    Im not sure if I have explained it enough to understand the problem or not. I'm still new at writing VBA so any points in the right direction is greatly appreciated.

    Thank you.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Having problem with userform checking for blank fields with comboboxes

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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] Populating userform textboxes basis of results from 2 userform comboboxes
    By rlh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2017, 10:26 AM
  2. [SOLVED] DSUM criteria problem in selecting blank fields
    By jdwalsh in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-01-2013, 08:02 AM
  3. [SOLVED] Drop Down List Problem - Removing Blank Fields
    By questionguy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2012, 05:56 AM
  4. Excel 2007 : Allow blank fields in userform
    By kmcarter in forum Excel General
    Replies: 1
    Last Post: 11-28-2011, 10:41 AM
  5. date format problem-three comboboxes on userform
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2009, 07:49 AM
  6. [SOLVED] Pivot Table problem, blank fields aren't being added
    By Ant in forum Excel General
    Replies: 3
    Last Post: 11-07-2005, 11:15 PM
  7. Checking a complex userform for blank entries
    By WillRn in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-10-2005, 07:05 PM

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