Type mismatch error

G

Gautam

The following statement gives an error of type mismatch in a macro
ActiveSheet.Cells(j, colcount) = (data(j, i)) / 587

where array data in a variant type

tried changing through CVar but failed


Could anyone solve this
 
G

Gautam

is data(j,i) numeric?

What are j, colcount, and i equal to (as well)?

There was an error in the first part of the code which was a string, i
erased it and it worked

Thanks
 

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