+ Reply to Thread
Results 1 to 4 of 4

Unfilled textboxes in userform creating problems.

  1. #1
    Registered User
    Join Date
    10-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Cool Unfilled textboxes in userform creating problems.

    Hi All.

    Sorry.....only new to this forum and posted this on my welcome page.

    Anyway.....I have setup a userform with many textboxes and all i am seeking to do is transfer the userform info onto my spreadsheet. The code i have is;

    Please Login or Register  to view this content.
    The problem is that i have six date fields (representing dates of birth and other important dates), and not all of these are required to be filled out by the user (ie - they are not mandatory). Problem is that if the user does not fill them out i get the runtime error 13 message "type mismatch", and the debugger is struggling with the fact that all date fields are not filled out. Does anyone know how to fix this? Cheers.
    Last edited by barmfield; 10-07-2012 at 01:52 AM. Reason: Problem Solved

  2. #2
    Forum Contributor
    Join Date
    10-02-2012
    Location
    Bumi Nusantara
    MS-Off Ver
    Excel 2010; Excel 2016
    Posts
    136

    Re: Unfilled textboxes in userform creating problems.

    for each textbox you should write like this
    Please Login or Register  to view this content.
    Last edited by dwint; 10-06-2012 at 09:01 PM.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Unfilled textboxes in userform creating problems.

    Hi barmfield

    Please add code tags around your code.

    Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    10-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Unfilled textboxes in userform creating problems.

    Thanks Dwint. This works exactly how i need it too. Really appreciate your help.

  5. #5
    Registered User
    Join Date
    10-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Unfilled textboxes in userform creating problems.

    Thanks Jaslake. I will remember to do this next time.

  6. #6
    Registered User
    Join Date
    10-06-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Unfilled textboxes in userform creating problems.

    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)

Tags for this Thread

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