Runtime error 13 - Type Mismatch

breechd

New Member
Joined
Jul 16, 2010
Messages
14
I have an excel spreadsheet that has a list of names in Column A (rows 2 through 6). It has a list of categories in Row A (B through X). In my code I identified the person names with NameItem and the categories with CatItem and defined both as Variant in Module 1. I am struggling with why my sheet calculates only into the Unknown column when it seems my code is correct. Any thoughts on how to troubleshoot this issue? Any ideas would be welcome. Thanks much!
 
Last edited:

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
rorya, I am still experiencing the type mismatch 13 error even after the changes you suggested. Any thoughts?
 
Upvote 0
If Not Module1.AddValue(NameItem:=Sheet11.Cells(lngRow, 1), CatItem:=Sheet11.Cells(lngRow, 2), lngScore:=Sheet11.Cells(lngColumn, 2)) Then
MsgBox "An error resulted in trying to add this value", vbCritical, "Error"
this is confusing me.
could you please post your current code and if possible indicate exactly when the error appears and confirm the error Number.
 
Upvote 0
Need to see your current code and to know the values of the row and column variables, as well as the values in those cells.
 
Upvote 0

Forum statistics

Threads
1,223,101
Messages
6,170,116
Members
452,302
Latest member
TaMere

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top