+ Reply to Thread
Results 1 to 9 of 9

Type Mismatch Error

  1. #1
    Registered User
    Join Date
    02-14-2020
    Location
    Paris
    MS-Off Ver
    2016 on Mac
    Posts
    81

    Type Mismatch Error

    Hello Again,

    I am having a type mismatch with my Function which is called in the main sub as below :

    Please Login or Register  to view this content.
    The Function is as below I am having a Type Mismatch with the red line . I think it will continue to other lines . How is it possible to arrange the type wisen the input is a range ?

    Thank you for your help.

    Najwa.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Type Mismatch Error

    Do you have any error values in the first column of the range?

  3. #3
    Registered User
    Join Date
    02-14-2020
    Location
    Paris
    MS-Off Ver
    2016 on Mac
    Posts
    81

    Re: Type Mismatch Error

    Hi Again,

    Actually I have the value #N/A. I changed my code a little bit to

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-14-2020
    Location
    Paris
    MS-Off Ver
    2016 on Mac
    Posts
    81

    Re: Type Mismatch Error

    Ha !
    I deleted the #NA and it worked !

    How can eliminate my Sub returning #NA ? By That I mean that I have defined a range Name in Excel till row 1000 as outputs , and if enter data till row 100, The code will run on the 1000 and since no input are there it returns #NA. I steer is a way to clear it easily ?

    Thx a lot !
    Najwa

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Type Mismatch Error

    Has that solved the problem?

  6. #6
    Registered User
    Join Date
    02-14-2020
    Location
    Paris
    MS-Off Ver
    2016 on Mac
    Posts
    81

    Re: Type Mismatch Error

    Yes it did !
    Do you have any idea if there is way ti eliminate the #Na easily ?

    I want to give you a reputation I get this message : You must spread some Reputation around before giving it to Fluff13 again. :-(

    Thank you.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Type Mismatch Error

    This will ignore any cells with an error
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-14-2020
    Location
    Paris
    MS-Off Ver
    2016 on Mac
    Posts
    81

    Re: Type Mismatch Error

    Fluff !! I am fan ! You are truly a GURU ! Stay safe dude !

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,072

    Re: Type Mismatch Error

    Glad to help & thanks for the feedback

+ 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. [SOLVED] RunTime Error 13 ( type mismatch ) error is comming TextboxAfter_Update
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2017, 03:55 AM
  2. Type mismatch error
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2017, 10:04 AM
  3. Run Type error 13 Type Mismatch
    By Affan Khan in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-13-2012, 12:58 PM
  4. [SOLVED] Run-type error 13 type mismatch
    By misop in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-05-2012, 04:08 AM
  5. Complile Error: Type Mismatch ??? After adding error trap
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-22-2012, 03:50 PM
  6. Conditional Formatting - Run Time Error '13' Type Mismatch Error
    By ksp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2011, 07:37 PM
  7. [SOLVED] Help: Compile error: type mismatch: array or user defined type expected
    By lvcha.gouqizi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2005, 05:05 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