+ Reply to Thread
Results 1 to 3 of 3

I can't find answer to Type Mismatch error message

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    I can't find answer to Type Mismatch error message

    I am using the following code to select the values in col A of a table where the value in Col G is TRUE
    Please Login or Register  to view this content.
    On the first iteration of the for loop I get the error message "Type Mismatch"
    AllAr looks fine in the Locals window.
    What is wrong with TrAr?


    Help Please
    John

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: I can't find answer to Type Mismatch error message

    you have dim'd TrAr as a variant but are treating it as an array within the loop.

    You can treat it as an array but only if you make it a variant array.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: I can't find answer to Type Mismatch error message

    Andy Pope,
    Many thanks for your reply. I now see what to do and it works perfectly.
    Sorry for the delay in my reply, I was pulled off the project for a while
    John

+ 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] Trying to find in this code whats causing error 13 Type mismatch
    By AndyJr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2018, 09:52 PM
  2. Getting error message- Run-time error '13'; type mismatch
    By UPA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-22-2017, 03:43 AM
  3. [SOLVED] Error Message: Run-time 13, Type Mismatch
    By slabs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2016, 05:21 AM
  4. Type mismatch error- What is the reason behind the error message?
    By Endre111 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2014, 02:03 PM
  5. Range and Find function error: Type Mismatch
    By VBNewb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2011, 02:10 PM
  6. Run time error 13 Type Mismatch pointing to Find MatchCase=false
    By NukedWhale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2009, 11:53 PM
  7. Type Mismatch Error on Find Closest Match
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2007, 11:07 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