Type mismatch error

I am getting a type mismatch error on this location. I have no idea what could cause this error. Can anyone help me just by looking at this piece of code? I cannot send the code but I can respond to questions.

Error location
LVL 43
Saqib Husain, SyedEngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NorieAnalyst Assistant Commented:
What is crdlist(i) when you get the error?
Saqib Husain, SyedEngineerAuthor Commented:
Crdlist is dimensioned as a variant with no dimensions.
And then split using the split command as shown above
The value of i is 2 and n is 235
Saqib Husain, SyedEngineerAuthor Commented:
But why should it error out at Next i  ?
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Martin LissOlder than dirtCommented:
If you were to separate the concatenated line into 3 lines you'll probably find that the ncrdlist(i) = CLng(0 & crdList(i)) is the problem. It's probably because CLng can't be used against something if it contains non-numeric data.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Saqib Husain, SyedEngineerAuthor Commented:
I have been using the same format since long. Only when the size of the data changes to something (which I have not figured out yet) I get this error.
NorieAnalyst Assistant Commented:
A string like '0-3898' can't be converted to Long.

If the purpose of the code is to convert to Long do you actually need the 0 &?
NorieAnalyst Assistant Commented:
A string like '0-3898' can't be converted to Long.

If the purpose of the code is to convert to Long do you actually need the 0 &?
Martin LissOlder than dirtCommented:
Rather than posting an image could you post the actual code and tell us the values (and types) of all the variables at the time of the error?
Saqib Husain, SyedEngineerAuthor Commented:
I never looked at anything else while the error was highlighted at Next i

Thanks a lot
Martin LissOlder than dirtCommented:
You're welcome and I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2015, Experts-Exchange Top Expert Visual Basic Classic 2012 to 2014
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.