Error type mismatch

Please

  1. make an MWE and quote your code,

  2. do not post the same question multiple times.