+ Reply to Thread
Results 1 to 7 of 7

Easy Type Mismatch Issue

  1. #1
    Registered User
    Join Date
    12-26-2015
    Location
    Las Vegas
    MS-Off Ver
    2013
    Posts
    56

    Easy Type Mismatch Issue

    Hola Gurus,

    For some reason this keep throwing a 'type mismatch' when run in column AB... but when run in AA it's fine!!! Can someone please guide me?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,888

    Re: Easy Type Mismatch Issue

    Please Login or Register  to view this content.
    Should be "RowCtr". and really, RowCtr & LR should both be declared as Long.

    Please Login or Register  to view this content.
    Other than that, will need to look at your worksheet to say for sure what's causing the issue.

  3. #3
    Registered User
    Join Date
    12-26-2015
    Location
    Las Vegas
    MS-Off Ver
    2013
    Posts
    56

    Re: Easy Type Mismatch Issue

    Ah you found my typo!

    Thank you for your response. I attached a file(a small version) for testing to show you what I mean...

    Column B works with your version and my version, but column D does not! Column D does have a formula... but I tested with values only and still had the issue.

    Any ideas?
    Attached Files Attached Files

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,888

    Re: Easy Type Mismatch Issue

    That's because of #Value errors in your column D.

    Use =IFERROR(Your Calc,"") to get rid of it and code will work fine.

  5. #5
    Registered User
    Join Date
    12-26-2015
    Location
    Las Vegas
    MS-Off Ver
    2013
    Posts
    56

    Re: Easy Type Mismatch Issue

    I tested that and it works...

    Is there any way to make the macro ignore the #VALUE! cells? I would like to avoid changing the formulas as I will need to do this weekly and the formulas are exported with the data.

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,888

    Re: Easy Type Mismatch Issue

    What should happen if cell contains error?
    Just ignore it?

  7. #7
    Registered User
    Join Date
    12-26-2015
    Location
    Las Vegas
    MS-Off Ver
    2013
    Posts
    56

    Re: Easy Type Mismatch Issue

    Yea... I added an Error Handler to it so I'm good.

    Thanks!

+ 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] "Run time Error '13, Type mismatch issue - please help
    By lukasz_W in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-08-2015, 03:59 AM
  2. [SOLVED] Small Issue with Type Mismatch and Invalid Qualifier when setting variable value from cell
    By TomToms in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2014, 08:03 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. Type Mismatch: array or user defined type expected
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2006, 10:45 AM
  6. [SOLVED] Type mismatch using rnge as Range with Type 8 Input Box
    By STEVE BELL in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-03-2005, 01:10 AM
  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

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