+ Reply to Thread
Results 1 to 3 of 3

Userform Controls (Allowing empty strings when match required = True)

  1. #1
    Registered User
    Join Date
    02-14-2010
    Location
    Scotland
    MS-Off Ver
    MS Office 2013
    Posts
    35

    Userform Controls (Allowing empty strings when match required = True)

    Hi All,

    I have searched google for an effective solution to this problem, however I cannot find anything that will efficiently deal with the scenario below. Again, any help would be much appreciated.

    I have a userform which has some combo box items that is populated by defined names in the workbook. The combo box items also have the match required option set to true as I want to force them to have to select a valid entry.

    The user will click a command button that will take the information and perform a sub procedure clearing the comboboxes (Using the following type code Combobox1.value = "") after completion (Effectively resetting the form). The issue I have is that the user may not require to re-enter any further information and therefore terminate the form. Unfortunately I get an "invalid property value" as the control have a value that doesn't match an item on the list.

    Thanks in advance.

    Regards

    Stuart

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Userform Controls (Allowing empty strings when match required = True)

    can you post a workbook - that shouldn't happen just from what you've described there.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    02-14-2010
    Location
    Scotland
    MS-Off Ver
    MS Office 2013
    Posts
    35

    Re: Userform Controls (Allowing empty strings when match required = True)

    Hi JosepthP,

    Thanks, you were correct it shouldn't happen, I think my code sets focus to one of the comboboxes generating the issue above. I'll have to check through and remove it.

    Thanks again.

    Stuart

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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