+ Reply to Thread
Results 1 to 4 of 4

If else if else statement error

  1. #1
    Forum Contributor
    Join Date
    02-27-2020
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    447

    If else if else statement error

    Hi,

    I have created a macro that shoudl change the value in column L if column K has "B001" in it. Somehow i get an error message: types do not match (from dutch)
    How can this problem be solved?

    Any input is much appreciated!

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: If else if else statement error

    Your sample file does not have data corresponding to your code...

    Also this...Is incorrect...Column I comes before K?
    Please Login or Register  to view this content.
    should it not be
    Please Login or Register  to view this content.
    Last edited by Sintek; 03-20-2021 at 03:31 AM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Forum Contributor
    Join Date
    02-27-2020
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    447

    Re: If else if else statement error

    Sorry i have here the file with the reference sheet and the Vlookup functions.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    02-27-2020
    Location
    Rotterdam, The Netherlands
    MS-Off Ver
    2013
    Posts
    447

    Re: If else if else statement error

    You're rigth that was the problem. Thanks!

+ 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] SUMIF statement for using two possible totals plus display ERROR if user error
    By simongra in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-26-2018, 05:08 PM
  2. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  3. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  4. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  5. Runtime Error - Subscript out of range despite On Error statement
    By DoctorG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-28-2006, 11:05 AM
  6. Path/File access error (Error 75) using Name Statement
    By blayne in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-22-2005, 05:25 PM
  7. Path/File access error (Error 75) after using Name Statement
    By blayne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2005, 08:35 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