+ Reply to Thread
Results 1 to 2 of 2

Cant Figure Out How To Detect Which Cells Have Type Mismatch Errors & Correct Them

  1. #1
    Forum Contributor
    Join Date
    10-29-2019
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    156

    Cant Figure Out How To Detect Which Cells Have Type Mismatch Errors & Correct Them

    Hi,

    I'm trying to get VBA to detect which cells have Type Mismatch Errors, & correct them. But nothing seems to work. I've tried adding Application.DisplayAlerts = False, but it still displays the error message.

    I've also tried Iferror & Iserror, & On Error, none of them seem to work on Type Mismatch Errors... I'm obviously doing something wrong here ...

    The text im getting a Type Mismatch Error is 9.329.61, this is located on cell A1.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Genus Max; 07-22-2020 at 12:36 PM.

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Cant Figure Out How To Detect Which Cells Have Type Mismatch Errors & Correct Them

    The value in A1 is a string (2 decimal points) and you declared the n variable as a long integer. Change one or the other.

+ 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] Type Mismatch error 13 but can't figure out why
    By Whitethorn in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-17-2018, 10:58 AM
  2. [SOLVED] Type Mismatch Compile Error: Can't figure Out
    By Pauly723 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-05-2015, 12:51 PM
  3. <Type mismatch> and can't figure out why
    By smoothopia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2014, 09:04 AM
  4. Type Mismatch Errors...:Val() function
    By yellephant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-27-2007, 04:01 PM
  5. Type Mismatch Errors...
    By yellephant in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2007, 09:39 AM
  6. Type Mismatch Errors...
    By yellephant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2007, 09:32 AM
  7. Type Mismatch I can't figure out!! (VBA)
    By Ben_2004 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2006, 02:25 AM

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