Results 1 to 5 of 5

#Value in array causing Type Mismatch in comparision

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,668

    #Value in array causing Type Mismatch in comparision

    Hi,

    I have an array of numbers which was obtained from col-A of the enclosed input file. To keep things simple there are only 15 entries in the column. However, there is "#Value!" entry in row 6.

    My goal is to "do something" if the number is greater than 25 and to do something else if its less than 25. The problem is that when making the comparison i get a "TypeMismatch" error.

    Any ideas how to solve this?
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED TY] Type mismatch using array and DDL
    By futurespec in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 07-02-2012, 09:34 AM
  2. 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
  3. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-09-2005, 01:54 AM
  4. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2005, 12:30 AM
  5. [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