+ Reply to Thread
Results 1 to 6 of 6

Runtime Error 13 Type Mismatch

Hybrid View

vtsoldier2010 Runtime Error 13 Type Mismatch 03-19-2012, 07:44 AM
vtsoldier2010 Re: Runtime Error 13 Type... 03-19-2012, 07:51 AM
Firefly2012 Re: Runtime Error 13 Type... 03-19-2012, 09:00 AM
vtsoldier2010 Re: Runtime Error 13 Type... 03-19-2012, 05:31 PM
tigeravatar Re: Runtime Error 13 Type... 03-19-2012, 06:18 PM
vtsoldier2010 Re: Runtime Error 13 Type... 03-30-2012, 12:59 PM
  1. #1
    Forum Contributor
    Join Date
    12-28-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    280

    Re: Runtime Error 13 Type Mismatch

    Hi

    It is because a multicell range returns an array when you access its Value property and you therefore get the type mismatch when your If tries to compare this array to a single string value (such as "PLX").

    Would you mind explaining in words what you want your code to do? Something along the lines of "If a V col value is changed then if the V cell = 'PLX' then modify some other cell by..."

  2. #2
    Registered User
    Join Date
    03-14-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Runtime Error 13 Type Mismatch

    [QUOTE=Firefly2012;2737151]Hi

    It is because a multicell range returns an array when you access its Value property and you therefore get the type mismatch when your If tries to compare this array to a single string value (such as "PLX").

    Would you mind explaining in words what you want your code to do? Something along the lines of "If a V col value is changed then if the V cell = 'PLX' then modify some other cell by..."[/QUOTE

    To explain my situation a little better. I have three dependent data validation lists set up in columns Q, R, and S. What I want the code to do is take the choices made in the three data validation lists and compare them to an exact criteria and return a value based on a match to specific criteria. For example if the user chooses "PLX" in column Q and "Imaging_TopCall" in column R and finally "Missing From File" in column S then column U auto populates with "Level 1". A record will be evaluated on every row of the spreadsheet, thus the necessity to have my code run over the entire range of all four columns involved with my code. Is there a way to rewrite my code so that it functions correctly? Any example you can give would be a great help. Thanks so much man>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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