+ Reply to Thread
Results 1 to 3 of 3

COUNTIF Type Mismatch Error When Preventing Duplicates via VBA

  1. #1
    Registered User
    Join Date
    06-10-2020
    Location
    Reno
    MS-Off Ver
    365
    Posts
    22

    COUNTIF Type Mismatch Error When Preventing Duplicates via VBA

    Hey everybody,

    I am currently building an inventory spreadsheet in which I am keeping track of a bunch of serial numbers.

    I have a VBA code I am using to prevent duplicate number entries within a specific range.

    Please Login or Register  to view this content.
    It works flawlessly... Except I get a "Type Mismatch" error when I try to change/delete multiple cells, or when I try certain formatting like inserting a row. This happens regardless of whether I make the change in the given range or not.

    Any help is much appreciated
    Last edited by guitarmonkeys14; 06-11-2020 at 01:49 PM. Reason: Solved

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,607

    Re: COUNTIF Type Mismatch Error When Preventing Duplicates via VBA

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    06-10-2020
    Location
    Reno
    MS-Off Ver
    365
    Posts
    22

    Re: COUNTIF Type Mismatch Error When Preventing Duplicates via VBA

    Quote Originally Posted by protonLeah View Post
    Please Login or Register  to view this content.
    Flawless! Thank you so much

+ 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 for countif function
    By vajakos81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2017, 08:39 AM
  2. [SOLVED] Run-time Error 13 Type Mismatch with CountIf
    By ceshi25 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-27-2017, 07:09 PM
  3. [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
  4. [SOLVED] COUNTIF function giving Type Mismatch error
    By Utzja1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2016, 07:34 AM
  5. [SOLVED] Error 13- "type mismatch" using CountIf function
    By jj4jj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-21-2015, 07:09 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

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