+ Reply to Thread
Results 1 to 6 of 6

Type mismatch when using Application.VLookup

  1. #1
    Forum Contributor
    Join Date
    06-12-2006
    Location
    Portugal
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    212

    Type mismatch when using Application.VLookup

    Hello to all,
    On the following piece of code I?m trying to store the value of ComboBox1, on UserForm frmForm on a cell.


    Please Login or Register  to view this content.

    I'm getting the Run-time error '13'
    Type mismatch
    On line:

    Please Login or Register  to view this content.

    Can someone please give me a hand on solving this? I have searched but found no solution. Also I have another piece of code using the same approach and it works fine?
    Many thanks,
    Octavio
    Last edited by oteixeira; 01-22-2023 at 08:34 AM. Reason: Code not visible

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,158

    Re: Type mismatch when using Application.VLookup

    HTML codes don't work. Use the # icon. We can't see your code.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    06-12-2006
    Location
    Portugal
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    212

    Re: Type mismatch when using Application.VLookup

    Hello,

    I edited the post. I think it is visible now...

  4. #4
    Forum Contributor
    Join Date
    06-12-2006
    Location
    Portugal
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    212

    Re: Type mismatch when using Application.VLookup

    Answering myself,
    I was looking for the entire content of ComboBox1 value when I should look only for from the second character on... that's why variable t was null...

    Greeting,
    Octavio

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,158

    Re: Type mismatch when using Application.VLookup

    Thanks for sharing your solution.

    Tough one for us to work out from just the code snippet



    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Forum Contributor
    Join Date
    06-12-2006
    Location
    Portugal
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    212

    Re: Type mismatch when using Application.VLookup

    TMS, thank You for the advice. I'm aware of that and I allways thank and add reputation to the wonderfull people giving help here.

    Cheers,
    Octavio

+ 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. Application.InputBox Throwing Type Mismatch Error
    By Justin H2O in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-16-2019, 02:48 PM
  2. Type mismatch with application.search
    By strud in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-22-2014, 04:03 PM
  3. application.transpose, type mismatch
    By rodpestell in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-02-2013, 12:22 PM
  4. Using Application.Inputbox.........getting type mismatch error
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2011, 07:33 AM
  5. Application.GetOpenFilename Type mismatch error
    By brl8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-03-2011, 04:56 PM
  6. Application.Vlookup Type Mismatch Error
    By ssjody in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2006, 05:24 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