Type mismatch using Find statement

  • I'm using a find statement to locate a text string in a column but I get a 'type mismatch' error when I run it. I'm guessing that it's because of what I'm trying to find is a text and it is looking for a number. Anyway to point to the row number of where I find the macthing text in the column?



    the above code works great when what i'm trying to find is a number


    thank you
    brian

    [SIZE="6"][FONT="Comic Sans MS"]Brain G.[/FONT][/SIZE] :loopain:

  • Re: Type mismatch using Find statement


    Try this way

  • Re: Type mismatch using Find statement


    Roy
    I'm still getting the 'Type Mismatch' error when I run the code you modified for me. What the find function will be looking for is letter number combination like: ABC12345, this is what our PC logon's look like.


    Thank you for your help
    Brian

    [SIZE="6"][FONT="Comic Sans MS"]Brain G.[/FONT][/SIZE] :loopain:

  • Re: Type mismatch using Find statement


    Thjis should work

  • Re: Type mismatch using Find statement


    Roy


    Thanks the new code worked. Any idea why i was getting the 'Type Mismatch' error? Would like to know so i can avoid future issues and having to ask for help.


    Thanks again


    Brian G.

    [SIZE="6"][FONT="Comic Sans MS"]Brain G.[/FONT][/SIZE] :loopain:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!