+ Reply to Thread
Results 1 to 9 of 9

Type Mismatch ( Date )

  1. #1
    Registered User
    Join Date
    10-10-2018
    Location
    Malaysia
    MS-Off Ver
    2013 32 Bit
    Posts
    54

    Type Mismatch ( Date )

    Currently, i am about to add DOB for every data. But, unfortunately when I want to add DOB it will have an error which is Type Mismatch at this line;

    Please Login or Register  to view this content.
    But, if I add DOB manually, and try to edit in the userform -- it can be edited.

    May I know, why is this happen?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Type Mismatch ( Date )

    Your months in the combobox are text and not numeric.

    Try this...
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    10-10-2018
    Location
    Malaysia
    MS-Off Ver
    2013 32 Bit
    Posts
    54

    Re: Type Mismatch ( Date )

    Still have the same error

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

    Re: Type Mismatch ( Date )

    I dont understand your userform.

    That line does not understand your month selection.

    You are showing Mac instead of Mar. However It does not even understand Apr.

    Try this instead.

    Please Login or Register  to view this content.
    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.

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Type Mismatch ( Date )

    Quote Originally Posted by ElStar View Post
    Still have the same error
    It works for me (except for month Mac) using your userform.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Type Mismatch ( Date )

    Try
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-10-2018
    Location
    Malaysia
    MS-Off Ver
    2013 32 Bit
    Posts
    54

    Re: Type Mismatch ( Date )

    Thanks! Its work for me

  8. #8
    Registered User
    Join Date
    10-10-2018
    Location
    Malaysia
    MS-Off Ver
    2013 32 Bit
    Posts
    54

    Re: Type Mismatch ( Date )

    Oh sorry. Anyway, thankyou for your help

    Quote Originally Posted by jindon View Post
    Try
    Please Login or Register  to view this content.

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Type Mismatch ( Date )

    You are welcome and thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Filter pivot item by date - type mismatch
    By mushkitoes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2018, 02:26 PM
  2. [SOLVED] Type mismatch for date extracted from string
    By caabdul in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-03-2018, 09:51 AM
  3. [SOLVED] Type mismatch on a date textbox when leaving it blank
    By shardin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2012, 05:25 AM
  4. Date formatting change/ type mismatch error
    By kerrya98 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2012, 01:34 PM
  5. Type mismatch in date field.
    By AnthonyWB in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-26-2010, 09:38 AM
  6. input box date type mismatch
    By Matilda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2005, 10:45 AM
  7. Date Type Mismatch
    By johncassell in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2005, 05:05 AM

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