Type Mismatch Error

D

D Van

I am receiving a type mismatch error on the below. I am using the RangeCat
function that I was provided earlier last week.

Dim RangeCat as Variant

Range("Sheet2!A1").Value =
Application.WorksheetFunction(RangeCat("Macro!A2:A500", ",", 1))

Any ideas?

Thanks
 
J

Juan Sanchez

D Van

It doesn't seems completely right, you are calling
function RangeCat , which I belive is a UDF, with the
application.worksheetfunction but this method works only
for built-in functions. On top of that you seem to be
declaring it as a variable (Dim RangeCat)...

Maybe if you post the entire code and what it is supposed
to do someone can give better advise...

Cheers
Juan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top